0s autopkgtest [18:36:47]: starting date and time: 2025-05-06 18:36:47+0000 0s autopkgtest [18:36:47]: git checkout: 9986aa8c Merge branch 'skia/fix_network_interface' into 'ubuntu/production' 0s autopkgtest [18:36:47]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.6x1iognl/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:tzdata --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=tzdata/2025b-1ubuntu1.1 -- lxd -r lxd-armhf-10.145.243.142 lxd-armhf-10.145.243.142:autopkgtest/ubuntu/plucky/armhf 32s autopkgtest [18:37:19]: testbed dpkg architecture: armhf 34s autopkgtest [18:37:21]: testbed apt version: 3.0.0 38s autopkgtest [18:37:25]: @@@@@@@@@@@@@@@@@@@@ test bed setup 40s autopkgtest [18:37:27]: testbed release detected to be: None 48s autopkgtest [18:37:35]: updating testbed package index (apt update) 50s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 50s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 50s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 50s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 50s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5196 B] 50s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [5772 B] 50s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 50s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 50s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [18.0 kB] 50s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 50s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 50s Get:12 http://ftpmaster.internal/ubuntu plucky-updates/main Sources [15.5 kB] 50s Get:13 http://ftpmaster.internal/ubuntu plucky-updates/universe Sources [6216 B] 50s Get:14 http://ftpmaster.internal/ubuntu plucky-updates/main armhf Packages [24.5 kB] 50s Get:15 http://ftpmaster.internal/ubuntu plucky-updates/universe armhf Packages [23.3 kB] 50s Get:16 http://ftpmaster.internal/ubuntu plucky-security/restricted Sources [10.4 kB] 50s Get:17 http://ftpmaster.internal/ubuntu plucky-security/multiverse Sources [7124 B] 50s Get:18 http://ftpmaster.internal/ubuntu plucky-security/universe Sources [6216 B] 50s Get:19 http://ftpmaster.internal/ubuntu plucky-security/main Sources [14.4 kB] 50s Get:20 http://ftpmaster.internal/ubuntu plucky-security/main armhf Packages [23.6 kB] 50s Get:21 http://ftpmaster.internal/ubuntu plucky-security/restricted armhf Packages [756 B] 50s Get:22 http://ftpmaster.internal/ubuntu plucky-security/universe armhf Packages [22.5 kB] 50s Get:23 http://ftpmaster.internal/ubuntu plucky-security/multiverse armhf Packages [956 B] 52s Fetched 707 kB in 1s (822 kB/s) 53s Reading package lists... 59s autopkgtest [18:37:46]: upgrading testbed (apt dist-upgrade and autopurge) 60s Reading package lists... 61s Building dependency tree... 61s Reading state information... 61s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 61s Starting 2 pkgProblemResolver with broken count: 0 61s Done 62s Entering ResolveByKeep 62s 62s Calculating upgrade... 63s The following packages will be upgraded: 63s tzdata 63s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 63s Need to get 198 kB of archives. 63s After this operation, 0 B of additional disk space will be used. 63s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata all 2025b-1ubuntu1.1 [198 kB] 64s Preconfiguring packages ... 64s Fetched 198 kB in 0s (563 kB/s) 64s (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 ... 63953 files and directories currently installed.) 64s Preparing to unpack .../tzdata_2025b-1ubuntu1.1_all.deb ... 64s Unpacking tzdata (2025b-1ubuntu1.1) over (2025b-1ubuntu1) ... 64s Setting up tzdata (2025b-1ubuntu1.1) ... 64s 64s Current default time zone: 'Etc/UTC' 64s Local time is now: Tue May 6 18:37:51 UTC 2025. 64s Universal Time is now: Tue May 6 18:37:51 UTC 2025. 64s Run 'dpkg-reconfigure tzdata' if you wish to change it. 64s 66s Reading package lists... 66s Building dependency tree... 66s Reading state information... 67s Starting pkgProblemResolver with broken count: 0 67s Starting 2 pkgProblemResolver with broken count: 0 67s Done 67s Solving dependencies... 68s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 70s autopkgtest [18:37:57]: rebooting testbed after setup commands that affected boot 112s autopkgtest [18:38:39]: testbed running kernel: Linux 6.8.0-58-generic #60~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 28 14:48:37 UTC 2 139s autopkgtest [18:39:06]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 207s Get:1 http://ftpmaster.internal/ubuntu plucky/main glib2.0 2.84.1-1 (dsc) [4812 B] 207s Get:2 http://ftpmaster.internal/ubuntu plucky/main glib2.0 2.84.1-1 (tar) [661 kB] 207s Get:3 http://ftpmaster.internal/ubuntu plucky/main glib2.0 2.84.1-1 (tar) [5615 kB] 207s Get:4 http://ftpmaster.internal/ubuntu plucky/main glib2.0 2.84.1-1 (diff) [136 kB] 207s gpgv: Signature made Fri Apr 4 19:02:25 2025 UTC 207s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 207s gpgv: Can't check signature: No public key 207s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.84.1-1.dsc: no acceptable signature found 208s autopkgtest [18:40:15]: testing package glib2.0 version 2.84.1-1 215s autopkgtest [18:40:22]: build not needed 224s autopkgtest [18:40:31]: test build: preparing testbed 226s Reading package lists... 227s Building dependency tree... 227s Reading state information... 227s Starting pkgProblemResolver with broken count: 0 227s Starting 2 pkgProblemResolver with broken count: 0 227s Done 228s The following NEW packages will be installed: 228s build-essential cpp cpp-14 cpp-14-arm-linux-gnueabihf 228s cpp-arm-linux-gnueabihf g++ g++-14 g++-14-arm-linux-gnueabihf 228s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 228s gcc-arm-linux-gnueabihf libasan8 libblkid-dev libc-dev-bin libc6-dev 228s libcc1-0 libcrypt-dev libffi-dev libgcc-14-dev libgio-2.0-dev libgomp1 228s libisl23 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 228s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 228s libsysprof-capture-4-dev libubsan1 linux-libc-dev pkgconf pkgconf-bin 228s rpcsvc-proto uuid-dev zlib1g-dev 228s 0 upgraded, 42 newly installed, 0 to remove and 0 not upgraded. 228s Need to get 54.7 MB of archives. 228s After this operation, 161 MB of additional disk space will be used. 228s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libc-dev-bin armhf 2.41-6ubuntu1 [21.7 kB] 228s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf linux-libc-dev armhf 6.14.0-15.15 [1687 kB] 229s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 229s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 229s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf libc6-dev armhf 2.41-6ubuntu1 [1396 kB] 229s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libisl23 armhf 0.27-1 [546 kB] 229s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 229s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [9221 kB] 229s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14 armhf 14.2.0-19ubuntu2 [1032 B] 229s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [5578 B] 229s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf cpp armhf 4:14.2.0-1ubuntu1 [22.4 kB] 229s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libcc1-0 armhf 15-20250404-0ubuntu1 [43.3 kB] 229s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libgomp1 armhf 15-20250404-0ubuntu1 [128 kB] 229s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libasan8 armhf 15-20250404-0ubuntu1 [2951 kB] 229s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libubsan1 armhf 15-20250404-0ubuntu1 [1188 kB] 229s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libgcc-14-dev armhf 14.2.0-19ubuntu2 [897 kB] 229s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [18.0 MB] 230s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14 armhf 14.2.0-19ubuntu2 [510 kB] 230s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1218 B] 230s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf gcc armhf 4:14.2.0-1ubuntu1 [5004 B] 230s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf libstdc++-14-dev armhf 14.2.0-19ubuntu2 [2576 kB] 230s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [10.5 MB] 231s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14 armhf 14.2.0-19ubuntu2 [23.0 kB] 231s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf g++-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [966 B] 231s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf g++ armhf 4:14.2.0-1ubuntu1 [1084 B] 231s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf build-essential armhf 12.12ubuntu1 [5088 B] 231s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf libffi-dev armhf 3.4.7-1 [57.2 kB] 231s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf uuid-dev armhf 2.40.2-14ubuntu1 [52.6 kB] 231s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf libblkid-dev armhf 2.40.2-14ubuntu1 [218 kB] 231s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf libsepol-dev armhf 3.7-1 [381 kB] 231s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-16-0 armhf 10.45-1 [207 kB] 231s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-32-0 armhf 10.45-1 [197 kB] 231s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-posix3 armhf 10.45-1 [6300 B] 231s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-dev armhf 10.45-1 [752 kB] 231s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libselinux1-dev armhf 3.7-3ubuntu3 [160 kB] 231s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf libmount-dev armhf 2.40.2-14ubuntu1 [34.6 kB] 231s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libsysprof-capture-4-dev armhf 48.0-2 [49.3 kB] 231s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 231s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 231s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 231s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 231s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf libgio-2.0-dev armhf 2.84.1-1 [1714 kB] 231s Fetched 54.7 MB in 3s (18.7 MB/s) 231s Selecting previously unselected package libc-dev-bin. 231s (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 ... 63953 files and directories currently installed.) 231s Preparing to unpack .../00-libc-dev-bin_2.41-6ubuntu1_armhf.deb ... 231s Unpacking libc-dev-bin (2.41-6ubuntu1) ... 231s Selecting previously unselected package linux-libc-dev:armhf. 232s Preparing to unpack .../01-linux-libc-dev_6.14.0-15.15_armhf.deb ... 232s Unpacking linux-libc-dev:armhf (6.14.0-15.15) ... 232s Selecting previously unselected package libcrypt-dev:armhf. 232s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 232s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 232s Selecting previously unselected package rpcsvc-proto. 232s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 232s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 232s Selecting previously unselected package libc6-dev:armhf. 232s Preparing to unpack .../04-libc6-dev_2.41-6ubuntu1_armhf.deb ... 232s Unpacking libc6-dev:armhf (2.41-6ubuntu1) ... 232s Selecting previously unselected package libisl23:armhf. 232s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 232s Unpacking libisl23:armhf (0.27-1) ... 232s Selecting previously unselected package libmpc3:armhf. 232s Preparing to unpack .../06-libmpc3_1.3.1-1build2_armhf.deb ... 232s Unpacking libmpc3:armhf (1.3.1-1build2) ... 232s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 232s Preparing to unpack .../07-cpp-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 232s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 233s Selecting previously unselected package cpp-14. 233s Preparing to unpack .../08-cpp-14_14.2.0-19ubuntu2_armhf.deb ... 233s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 233s Selecting previously unselected package cpp-arm-linux-gnueabihf. 233s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 233s Unpacking cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 233s Selecting previously unselected package cpp. 233s Preparing to unpack .../10-cpp_4%3a14.2.0-1ubuntu1_armhf.deb ... 233s Unpacking cpp (4:14.2.0-1ubuntu1) ... 233s Selecting previously unselected package libcc1-0:armhf. 233s Preparing to unpack .../11-libcc1-0_15-20250404-0ubuntu1_armhf.deb ... 233s Unpacking libcc1-0:armhf (15-20250404-0ubuntu1) ... 233s Selecting previously unselected package libgomp1:armhf. 233s Preparing to unpack .../12-libgomp1_15-20250404-0ubuntu1_armhf.deb ... 233s Unpacking libgomp1:armhf (15-20250404-0ubuntu1) ... 233s Selecting previously unselected package libasan8:armhf. 233s Preparing to unpack .../13-libasan8_15-20250404-0ubuntu1_armhf.deb ... 233s Unpacking libasan8:armhf (15-20250404-0ubuntu1) ... 233s Selecting previously unselected package libubsan1:armhf. 233s Preparing to unpack .../14-libubsan1_15-20250404-0ubuntu1_armhf.deb ... 233s Unpacking libubsan1:armhf (15-20250404-0ubuntu1) ... 233s Selecting previously unselected package libgcc-14-dev:armhf. 233s Preparing to unpack .../15-libgcc-14-dev_14.2.0-19ubuntu2_armhf.deb ... 233s Unpacking libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 233s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 233s Preparing to unpack .../16-gcc-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 233s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 233s Selecting previously unselected package gcc-14. 233s Preparing to unpack .../17-gcc-14_14.2.0-19ubuntu2_armhf.deb ... 233s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 233s Selecting previously unselected package gcc-arm-linux-gnueabihf. 233s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 233s Unpacking gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 233s Selecting previously unselected package gcc. 233s Preparing to unpack .../19-gcc_4%3a14.2.0-1ubuntu1_armhf.deb ... 233s Unpacking gcc (4:14.2.0-1ubuntu1) ... 234s Selecting previously unselected package libstdc++-14-dev:armhf. 234s Preparing to unpack .../20-libstdc++-14-dev_14.2.0-19ubuntu2_armhf.deb ... 234s Unpacking libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 234s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 234s Preparing to unpack .../21-g++-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 234s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 234s Selecting previously unselected package g++-14. 234s Preparing to unpack .../22-g++-14_14.2.0-19ubuntu2_armhf.deb ... 234s Unpacking g++-14 (14.2.0-19ubuntu2) ... 234s Selecting previously unselected package g++-arm-linux-gnueabihf. 234s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 234s Unpacking g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 234s Selecting previously unselected package g++. 234s Preparing to unpack .../24-g++_4%3a14.2.0-1ubuntu1_armhf.deb ... 234s Unpacking g++ (4:14.2.0-1ubuntu1) ... 234s Selecting previously unselected package build-essential. 234s Preparing to unpack .../25-build-essential_12.12ubuntu1_armhf.deb ... 234s Unpacking build-essential (12.12ubuntu1) ... 234s Selecting previously unselected package libffi-dev:armhf. 234s Preparing to unpack .../26-libffi-dev_3.4.7-1_armhf.deb ... 234s Unpacking libffi-dev:armhf (3.4.7-1) ... 234s Selecting previously unselected package uuid-dev:armhf. 234s Preparing to unpack .../27-uuid-dev_2.40.2-14ubuntu1_armhf.deb ... 234s Unpacking uuid-dev:armhf (2.40.2-14ubuntu1) ... 234s Selecting previously unselected package libblkid-dev:armhf. 234s Preparing to unpack .../28-libblkid-dev_2.40.2-14ubuntu1_armhf.deb ... 234s Unpacking libblkid-dev:armhf (2.40.2-14ubuntu1) ... 234s Selecting previously unselected package libsepol-dev:armhf. 234s Preparing to unpack .../29-libsepol-dev_3.7-1_armhf.deb ... 234s Unpacking libsepol-dev:armhf (3.7-1) ... 234s Selecting previously unselected package libpcre2-16-0:armhf. 234s Preparing to unpack .../30-libpcre2-16-0_10.45-1_armhf.deb ... 234s Unpacking libpcre2-16-0:armhf (10.45-1) ... 234s Selecting previously unselected package libpcre2-32-0:armhf. 234s Preparing to unpack .../31-libpcre2-32-0_10.45-1_armhf.deb ... 234s Unpacking libpcre2-32-0:armhf (10.45-1) ... 234s Selecting previously unselected package libpcre2-posix3:armhf. 234s Preparing to unpack .../32-libpcre2-posix3_10.45-1_armhf.deb ... 234s Unpacking libpcre2-posix3:armhf (10.45-1) ... 234s Selecting previously unselected package libpcre2-dev:armhf. 234s Preparing to unpack .../33-libpcre2-dev_10.45-1_armhf.deb ... 234s Unpacking libpcre2-dev:armhf (10.45-1) ... 234s Selecting previously unselected package libselinux1-dev:armhf. 234s Preparing to unpack .../34-libselinux1-dev_3.7-3ubuntu3_armhf.deb ... 234s Unpacking libselinux1-dev:armhf (3.7-3ubuntu3) ... 234s Selecting previously unselected package libmount-dev:armhf. 234s Preparing to unpack .../35-libmount-dev_2.40.2-14ubuntu1_armhf.deb ... 234s Unpacking libmount-dev:armhf (2.40.2-14ubuntu1) ... 235s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 235s Preparing to unpack .../36-libsysprof-capture-4-dev_48.0-2_armhf.deb ... 235s Unpacking libsysprof-capture-4-dev:armhf (48.0-2) ... 235s Selecting previously unselected package libpkgconf3:armhf. 235s Preparing to unpack .../37-libpkgconf3_1.8.1-4_armhf.deb ... 235s Unpacking libpkgconf3:armhf (1.8.1-4) ... 235s Selecting previously unselected package pkgconf-bin. 235s Preparing to unpack .../38-pkgconf-bin_1.8.1-4_armhf.deb ... 235s Unpacking pkgconf-bin (1.8.1-4) ... 235s Selecting previously unselected package pkgconf:armhf. 235s Preparing to unpack .../39-pkgconf_1.8.1-4_armhf.deb ... 235s Unpacking pkgconf:armhf (1.8.1-4) ... 235s Selecting previously unselected package zlib1g-dev:armhf. 235s Preparing to unpack .../40-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 235s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 235s Selecting previously unselected package libgio-2.0-dev:armhf. 235s Preparing to unpack .../41-libgio-2.0-dev_2.84.1-1_armhf.deb ... 235s Unpacking libgio-2.0-dev:armhf (2.84.1-1) ... 235s Setting up linux-libc-dev:armhf (6.14.0-15.15) ... 235s Setting up libgomp1:armhf (15-20250404-0ubuntu1) ... 235s Setting up libffi-dev:armhf (3.4.7-1) ... 235s Setting up libpcre2-16-0:armhf (10.45-1) ... 235s Setting up libsysprof-capture-4-dev:armhf (48.0-2) ... 235s Setting up libpcre2-32-0:armhf (10.45-1) ... 235s Setting up libpkgconf3:armhf (1.8.1-4) ... 235s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 235s Setting up libmpc3:armhf (1.3.1-1build2) ... 235s Setting up libsepol-dev:armhf (3.7-1) ... 235s Setting up pkgconf-bin (1.8.1-4) ... 235s Setting up libubsan1:armhf (15-20250404-0ubuntu1) ... 235s Setting up libpcre2-posix3:armhf (10.45-1) ... 235s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 235s Setting up libasan8:armhf (15-20250404-0ubuntu1) ... 235s Setting up libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 235s Setting up libisl23:armhf (0.27-1) ... 235s Setting up libc-dev-bin (2.41-6ubuntu1) ... 235s Setting up libcc1-0:armhf (15-20250404-0ubuntu1) ... 235s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 235s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 235s Setting up pkgconf:armhf (1.8.1-4) ... 235s Setting up cpp-14 (14.2.0-19ubuntu2) ... 235s Setting up libc6-dev:armhf (2.41-6ubuntu1) ... 235s Setting up libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 235s Setting up cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 235s Setting up gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 235s Setting up g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 235s Setting up libpcre2-dev:armhf (10.45-1) ... 235s Setting up libselinux1-dev:armhf (3.7-3ubuntu3) ... 235s Setting up gcc-14 (14.2.0-19ubuntu2) ... 235s Setting up uuid-dev:armhf (2.40.2-14ubuntu1) ... 235s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 235s Setting up cpp (4:14.2.0-1ubuntu1) ... 235s Setting up g++-14 (14.2.0-19ubuntu2) ... 235s Setting up g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 235s Setting up libblkid-dev:armhf (2.40.2-14ubuntu1) ... 235s Setting up gcc (4:14.2.0-1ubuntu1) ... 235s Setting up g++ (4:14.2.0-1ubuntu1) ... 235s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 235s Setting up build-essential (12.12ubuntu1) ... 235s Setting up libmount-dev:armhf (2.40.2-14ubuntu1) ... 235s Setting up libgio-2.0-dev:armhf (2.84.1-1) ... 235s Processing triggers for man-db (2.13.0-1) ... 236s Processing triggers for libglib2.0-0t64:armhf (2.84.1-1) ... 236s No schema files found: doing nothing. 236s Processing triggers for install-info (7.1.1-1) ... 236s Processing triggers for libc-bin (2.41-6ubuntu1) ... 244s autopkgtest [18:40:51]: test build: [----------------------- 246s + mode=dynamic 246s + getopt -o --long static -n debian/tests/build -- 246s + getopt_temp= -- 246s + eval set -- -- 246s + set -- -- 246s + true 246s + shift 246s + break 246s + mktemp -d 246s + WORKDIR=/tmp/tmp.oNMRb8eRkE 246s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 246s + cd /tmp/tmp.oNMRb8eRkE 246s + [ -n ] 246s + CROSS_COMPILE= 246s + cat 246s + cat 246s + cat 246s + cat 246s + cat 246s + cat 246s + cflags= 246s + pcflags= 246s + packages=glib-2.0 246s + pkg-config --cflags --libs glib-2.0 246s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 246s + echo build (glib, dynamic): OK 246s + [ -x glib-dynamic ] 246s + foo=bar ./glib-dynamic 246s + echo run (glib, dynamic): OK 246s + cflags= 246s + pcflags= 246s + packages=gobject-2.0 246s + pkg-config --cflags --libs gobject-2.0 246s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 246s build (glib, dynamic): OK 246s run (glib, dynamic): OK 246s build (gobject, dynamic): OK 246s + echo build (gobject, dynamic): OK 246s + [ -x gobject-dynamic ] 246s + foo=bar ./gobject-dynamic 246s + echo run (gobject, dynamic): OK 246s + cflags= 246s + pcflags= 246s + packages=gio-2.0 246s run (gobject, dynamic): OK 246s + pkg-config --cflags --libs gio-2.0 246s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/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 246s build (gio, dynamic): OK 246s + echo build (gio, dynamic): OK 246s + [ -x gio-dynamic ] 246s + foo=bar ./gio-dynamic 246s + echo run (gio, dynamic): OK 246s + cflags= 246s + pcflags= 246s + packages=gio-unix-2.0 246s run (gio, dynamic): OK 246s + pkg-config --cflags --libs gio-unix-2.0 246s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/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 247s + echo build (gio-unix, dynamic): OK 247s + [ -x gio-unix-dynamic ] 247s + foo=bar ./gio-unix-dynamic 247s build (gio-unix, dynamic): OK 247s + echo run (gio-unix, dynamic): OK 247s + cflags= 247s + pcflags= 247s + packages=gmodule-2.0 247s run (gio-unix, dynamic): OK 247s + pkg-config --cflags --libs gmodule-2.0 247s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 247s + echo build (gmodule, dynamic): OK 247s + [ -x gmodule-dynamic ] 247s + foo=bar ./gmodule-dynamic 247s + echo run (gmodule, dynamic): OK 247s + cflags= 247s + pcflags= 247s + packages=gthread-2.0 247s + pkg-config --cflags --libs gthread-2.0 247s build (gmodule, dynamic): OK 247s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 247s run (gmodule, dynamic): OK 247s build (gthread, dynamic): OK 247s + echo build (gthread, dynamic): OK 247s + [ -x gthread-dynamic ] 247s + foo=bar ./gthread-dynamic 247s + echo run (gthread, dynamic): OK 247s + rm -rf /tmp/tmp.oNMRb8eRkE 247s run (gthread, dynamic): OK 247s autopkgtest [18:40:54]: test build: -----------------------] 251s autopkgtest [18:40:58]: test build: - - - - - - - - - - results - - - - - - - - - - 251s build PASS (superficial) 255s autopkgtest [18:41:02]: test build-static: preparing testbed 256s Reading package lists... 257s Building dependency tree... 257s Reading state information... 257s Starting pkgProblemResolver with broken count: 0 257s Starting 2 pkgProblemResolver with broken count: 0 257s Done 258s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 265s autopkgtest [18:41:12]: test build-static: [----------------------- 267s + mode=dynamic 267s + getopt -o --long static -n debian/tests/build -- --static 267s + getopt_temp= --static -- 267s + eval set -- --static -- 267s + set -- --static -- 267s + true 267s + mode=static 267s + shift 267s + continue 267s + true 267s + shift 267s + break 267s + mktemp -d 267s + WORKDIR=/tmp/tmp.9NbUFStADz 267s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 267s + cd /tmp/tmp.9NbUFStADz 267s + [ -n ] 267s + CROSS_COMPILE= 267s + cat 267s + cat 267s + cat 267s + cat 267s + cat 267s + cat 267s + cflags= 267s + pcflags= 267s + packages=glib-2.0 267s + cflags=-static 267s + pcflags=--static 267s + pkg-config --static --cflags --libs glib-2.0 267s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 267s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 267s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 267s build (glib, static): OK 267s + echo build (glib, static): OK 267s + [ -x glib-static ] 267s + foo=bar ./glib-static 267s run (glib, static): OK 267s + echo run (glib, static): OK 267s + cflags= 267s + pcflags= 267s + packages=gobject-2.0 267s + cflags=-static 267s + pcflags=--static 267s + pkg-config --static --cflags --libs gobject-2.0 267s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 268s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 268s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s build (gobject, static): OK 268s + echo build (gobject, static): OK 268s + [ -x gobject-static ] 268s + foo=bar ./gobject-static 268s run (gobject, static): OK 268s + echo run (gobject, static): OK 268s + cflags= 268s + pcflags= 268s + packages=gio-2.0 268s + cflags=-static 268s + pcflags=--static 268s + continue 268s + cflags= 268s + pcflags= 268s + packages=gio-unix-2.0 268s + cflags=-static 268s + pcflags=--static 268s + continue 268s + cflags= 268s + pcflags= 268s + packages=gmodule-2.0 268s + cflags=-static 268s + pcflags=--static 268s + pkg-config --static --cflags --libs gmodule-2.0 268s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 268s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 268s (.text+0x412): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 268s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s + echo build (gmodule, static): OK 268s + [ -x gmodule-static ] 268s + foo=bar ./gmodule-static 268s build (gmodule, static): OK 268s + echo run (gmodule, static): OK 268s + cflags= 268s + pcflags= 268s + packages=gthread-2.0 268s + cflags=-static 268s + pcflags=--static 268s run (gmodule, static): OK 268s + pkg-config --static --cflags --libs gthread-2.0 268s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 268s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 268s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 268s + echo build (gthread, static): OK 268s + [ -x gthread-static ] 268s + foo=bar ./gthread-static 268s build (gthread, static): OK 268s + echo run (gthread, static): OK 268s + rm -rf /tmp/tmp.9NbUFStADz 268s run (gthread, static): OK 268s autopkgtest [18:41:15]: test build-static: -----------------------] 272s build-static PASS (superficial) 272s autopkgtest [18:41:19]: test build-static: - - - - - - - - - - results - - - - - - - - - - 276s autopkgtest [18:41:23]: test girepository-tools: preparing testbed 298s autopkgtest [18:41:45]: testbed dpkg architecture: armhf 299s autopkgtest [18:41:46]: testbed apt version: 3.0.0 303s autopkgtest [18:41:50]: @@@@@@@@@@@@@@@@@@@@ test bed setup 305s autopkgtest [18:41:52]: testbed release detected to be: plucky 312s autopkgtest [18:41:59]: updating testbed package index (apt update) 314s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 314s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 314s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 315s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 315s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5196 B] 315s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [5772 B] 315s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 315s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 315s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [18.0 kB] 315s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 315s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 315s Get:12 http://ftpmaster.internal/ubuntu plucky-updates/main Sources [15.5 kB] 315s Get:13 http://ftpmaster.internal/ubuntu plucky-updates/universe Sources [6216 B] 315s Get:14 http://ftpmaster.internal/ubuntu plucky-updates/main armhf Packages [24.5 kB] 315s Get:15 http://ftpmaster.internal/ubuntu plucky-updates/universe armhf Packages [23.3 kB] 315s Get:16 http://ftpmaster.internal/ubuntu plucky-security/multiverse Sources [7124 B] 315s Get:17 http://ftpmaster.internal/ubuntu plucky-security/restricted Sources [10.4 kB] 315s Get:18 http://ftpmaster.internal/ubuntu plucky-security/main Sources [14.4 kB] 315s Get:19 http://ftpmaster.internal/ubuntu plucky-security/universe Sources [6216 B] 315s Get:20 http://ftpmaster.internal/ubuntu plucky-security/main armhf Packages [23.6 kB] 315s Get:21 http://ftpmaster.internal/ubuntu plucky-security/restricted armhf Packages [756 B] 315s Get:22 http://ftpmaster.internal/ubuntu plucky-security/universe armhf Packages [22.5 kB] 315s Get:23 http://ftpmaster.internal/ubuntu plucky-security/multiverse armhf Packages [956 B] 316s Fetched 707 kB in 1s (790 kB/s) 317s Reading package lists... 323s autopkgtest [18:42:10]: upgrading testbed (apt dist-upgrade and autopurge) 324s Reading package lists... 324s Building dependency tree... 324s Reading state information... 325s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 325s Starting 2 pkgProblemResolver with broken count: 0 325s Done 326s Entering ResolveByKeep 326s 326s Calculating upgrade... 326s The following packages will be upgraded: 326s tzdata 327s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 327s Need to get 198 kB of archives. 327s After this operation, 0 B of additional disk space will be used. 327s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata all 2025b-1ubuntu1.1 [198 kB] 327s Preconfiguring packages ... 327s Fetched 198 kB in 0s (568 kB/s) 327s (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 ... 63953 files and directories currently installed.) 327s Preparing to unpack .../tzdata_2025b-1ubuntu1.1_all.deb ... 327s Unpacking tzdata (2025b-1ubuntu1.1) over (2025b-1ubuntu1) ... 327s Setting up tzdata (2025b-1ubuntu1.1) ... 328s 328s Current default time zone: 'Etc/UTC' 328s Local time is now: Tue May 6 18:42:15 UTC 2025. 328s Universal Time is now: Tue May 6 18:42:15 UTC 2025. 328s Run 'dpkg-reconfigure tzdata' if you wish to change it. 328s 329s Reading package lists... 330s Building dependency tree... 330s Reading state information... 330s Starting pkgProblemResolver with broken count: 0 330s Starting 2 pkgProblemResolver with broken count: 0 330s Done 330s Solving dependencies... 331s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 332s autopkgtest [18:42:19]: rebooting testbed after setup commands that affected boot 394s Reading package lists... 394s Building dependency tree... 394s Reading state information... 395s Starting pkgProblemResolver with broken count: 0 395s Starting 2 pkgProblemResolver with broken count: 0 395s Done 395s The following NEW packages will be installed: 395s gir1.2-glib-2.0-dev girepository-tools libgirepository-2.0-0 395s native-architecture 396s 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. 396s Need to get 1073 kB of archives. 396s After this operation, 12.7 MB of additional disk space will be used. 396s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf gir1.2-glib-2.0-dev armhf 2.84.1-1 [862 kB] 396s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf native-architecture all 0.2.6 [2140 B] 396s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libgirepository-2.0-0 armhf 2.84.1-1 [99.2 kB] 396s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf girepository-tools armhf 2.84.1-1 [109 kB] 396s Fetched 1073 kB in 1s (1635 kB/s) 396s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 397s (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 ... 63953 files and directories currently installed.) 397s Preparing to unpack .../gir1.2-glib-2.0-dev_2.84.1-1_armhf.deb ... 397s Unpacking gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 397s Selecting previously unselected package native-architecture. 397s Preparing to unpack .../native-architecture_0.2.6_all.deb ... 397s Unpacking native-architecture (0.2.6) ... 397s Selecting previously unselected package libgirepository-2.0-0:armhf. 397s Preparing to unpack .../libgirepository-2.0-0_2.84.1-1_armhf.deb ... 397s Unpacking libgirepository-2.0-0:armhf (2.84.1-1) ... 397s Selecting previously unselected package girepository-tools:armhf. 397s Preparing to unpack .../girepository-tools_2.84.1-1_armhf.deb ... 397s Unpacking girepository-tools:armhf (2.84.1-1) ... 397s Setting up native-architecture (0.2.6) ... 397s Setting up libgirepository-2.0-0:armhf (2.84.1-1) ... 397s Setting up gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 397s Setting up girepository-tools:armhf (2.84.1-1) ... 397s Processing triggers for man-db (2.13.0-1) ... 397s Processing triggers for libc-bin (2.41-6ubuntu1) ... 414s autopkgtest [18:43:41]: test girepository-tools: [----------------------- 416s + cd /tmp/autopkgtest.6YAuRe/autopkgtest_tmp 416s + dpkg-architecture -qDEB_HOST_GNU_TYPE 416s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 416s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 416s + dpkg-architecture -qDEB_HOST_MULTIARCH 416s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 416s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 416s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 416s typelib: GLib-2.0 416s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 416s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 416s autopkgtest [18:43:43]: test girepository-tools: -----------------------] 420s girepository-tools PASS (superficial) 420s autopkgtest [18:43:47]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 424s autopkgtest [18:43:51]: test libgio-2.0-dev-bin: preparing testbed 445s autopkgtest [18:44:12]: testbed dpkg architecture: armhf 446s autopkgtest [18:44:13]: testbed apt version: 3.0.0 450s autopkgtest [18:44:17]: @@@@@@@@@@@@@@@@@@@@ test bed setup 452s autopkgtest [18:44:19]: testbed release detected to be: plucky 459s autopkgtest [18:44:26]: updating testbed package index (apt update) 461s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 461s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 461s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 461s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 461s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5196 B] 461s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [5772 B] 461s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 461s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 461s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [18.0 kB] 461s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 461s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 461s Get:12 http://ftpmaster.internal/ubuntu plucky-updates/main Sources [15.5 kB] 461s Get:13 http://ftpmaster.internal/ubuntu plucky-updates/universe Sources [6216 B] 461s Get:14 http://ftpmaster.internal/ubuntu plucky-updates/main armhf Packages [24.5 kB] 461s Get:15 http://ftpmaster.internal/ubuntu plucky-updates/universe armhf Packages [23.3 kB] 461s Get:16 http://ftpmaster.internal/ubuntu plucky-security/universe Sources [6216 B] 461s Get:17 http://ftpmaster.internal/ubuntu plucky-security/multiverse Sources [7124 B] 461s Get:18 http://ftpmaster.internal/ubuntu plucky-security/main Sources [14.4 kB] 461s Get:19 http://ftpmaster.internal/ubuntu plucky-security/restricted Sources [10.4 kB] 461s Get:20 http://ftpmaster.internal/ubuntu plucky-security/main armhf Packages [23.6 kB] 461s Get:21 http://ftpmaster.internal/ubuntu plucky-security/restricted armhf Packages [756 B] 461s Get:22 http://ftpmaster.internal/ubuntu plucky-security/universe armhf Packages [22.5 kB] 461s Get:23 http://ftpmaster.internal/ubuntu plucky-security/multiverse armhf Packages [956 B] 463s Fetched 707 kB in 1s (787 kB/s) 464s Reading package lists... 469s autopkgtest [18:44:36]: upgrading testbed (apt dist-upgrade and autopurge) 471s Reading package lists... 471s Building dependency tree... 471s Reading state information... 472s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 472s Starting 2 pkgProblemResolver with broken count: 0 472s Done 472s Entering ResolveByKeep 473s 473s Calculating upgrade... 473s The following packages will be upgraded: 473s tzdata 473s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 473s Need to get 198 kB of archives. 473s After this operation, 0 B of additional disk space will be used. 473s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata all 2025b-1ubuntu1.1 [198 kB] 474s Preconfiguring packages ... 474s Fetched 198 kB in 0s (562 kB/s) 474s (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 ... 63953 files and directories currently installed.) 474s Preparing to unpack .../tzdata_2025b-1ubuntu1.1_all.deb ... 474s Unpacking tzdata (2025b-1ubuntu1.1) over (2025b-1ubuntu1) ... 474s Setting up tzdata (2025b-1ubuntu1.1) ... 475s 475s Current default time zone: 'Etc/UTC' 475s Local time is now: Tue May 6 18:44:42 UTC 2025. 475s Universal Time is now: Tue May 6 18:44:42 UTC 2025. 475s Run 'dpkg-reconfigure tzdata' if you wish to change it. 475s 476s Reading package lists... 477s Building dependency tree... 477s Reading state information... 477s Starting pkgProblemResolver with broken count: 0 477s Starting 2 pkgProblemResolver with broken count: 0 477s Done 478s Solving dependencies... 478s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 480s autopkgtest [18:44:47]: rebooting testbed after setup commands that affected boot 541s Reading package lists... 541s Building dependency tree... 541s Reading state information... 541s Starting pkgProblemResolver with broken count: 0 541s Starting 2 pkgProblemResolver with broken count: 0 541s Done 542s The following NEW packages will be installed: 542s libgio-2.0-dev-bin 542s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 542s Need to get 130 kB of archives. 542s After this operation, 814 kB of additional disk space will be used. 542s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libgio-2.0-dev-bin armhf 2.84.1-1 [130 kB] 543s Fetched 130 kB in 0s (328 kB/s) 543s Selecting previously unselected package libgio-2.0-dev-bin. 543s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 63953 files and directories currently installed.) 543s Preparing to unpack .../libgio-2.0-dev-bin_2.84.1-1_armhf.deb ... 543s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 543s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 543s Processing triggers for man-db (2.13.0-1) ... 560s autopkgtest [18:46:07]: test libgio-2.0-dev-bin: [----------------------- 562s + gdbus-codegen --help 562s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 562s [--c-namespace NAMESPACE] [--c-generate-object-manager] 562s [--c-generate-autocleanup {none,objects,all}] 562s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 562s [--generate-rst OUTFILES] [--pragma-once] 562s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 562s [--glib-min-required VERSION] 562s [--glib-max-allowed VERSION] 562s [--symbol-decorator SYMBOL_DECORATOR] 562s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 562s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 562s [--generate-c-code OUTFILES | --header | --body | 562s --interface-info-header | --interface-info-body] 562s [--output FILE | --output-directory OUTDIR] 562s FILE [FILE ...] 562s 562s D-Bus code and documentation generator 562s 562s positional arguments: 562s FILE D-Bus introspection XML file 562s 562s options: 562s -h, --help show this help message and exit 562s --interface-prefix PREFIX 562s String to strip from D-Bus interface names for code 562s and docs 562s --c-namespace NAMESPACE 562s The namespace to use for generated C code 562s --c-generate-object-manager 562s Generate a GDBusObjectManagerClient subclass when 562s generating C code 562s --c-generate-autocleanup {none,objects,all} 562s Generate autocleanup support 562s --generate-docbook OUTFILES 562s Generate Docbook in OUTFILES-org.Project.IFace.xml 562s --generate-md OUTFILES 562s Generate Markdown in OUTFILES-org.Project.IFace.md 562s --generate-rst OUTFILES 562s Generate reStructuredText in OUTFILES- 562s org.Project.IFace.rst 562s --pragma-once Use "pragma once" as the inclusion guard 562s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 562s Add annotation (may be used several times) 562s --glib-min-required VERSION 562s Minimum version of GLib to be supported by the 562s outputted code (default: 2.30) 562s --glib-max-allowed VERSION 562s Maximum version of GLib to be used by the outputted 562s code (default: current GLib version) 562s --symbol-decorator SYMBOL_DECORATOR 562s Macro used to decorate a symbol in the outputted 562s header, possibly to export symbols 562s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 562s Additional header required for decorator specified by 562s --symbol-decorator 562s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 562s Additional define required for decorator specified by 562s --symbol-decorator 562s --generate-c-code OUTFILES 562s Generate C code in OUTFILES.[ch] 562s --header Generate C headers 562s --body Generate C code 562s --interface-info-header 562s Generate GDBusInterfaceInfo C header 562s --interface-info-body 562s Generate GDBusInterfaceInfo C code 562s --output FILE Write output into the specified file 562s --output-directory OUTDIR 562s Location to output generated files 562s + glib-compile-resources --version 562s 2.84.1 562s + glib-genmarshal --version 562s glib-genmarshal version 2.84.1 562s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 562s You may redistribute copies of glib-genmarshal under the terms of 562s the GNU General Public License which can be found in the 562s GLib source package. Sources, examples and contact 562s information are available at http://www.gtk.org 562s + glib-gettextize --version 562s + glib-mkenums --version 562s /usr/bin/glib-gettextize (GNU glib) 2.84.1 562s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 562s This is free software; see the source for copying conditions. There is NO 562s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 562s Written by Ulrich Drepper 562s glib-mkenums version 2.84.1 562s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 562s You may redistribute copies of glib-mkenums under the terms of 562s the GNU General Public License which can be found in the 562s GLib source package. Sources, examples and contact 562s information are available at http://www.gtk.org 562s + gobject-query tree 562s GObject 562s + gtester --version 562s + gtester-report --version 562s gtester version 2.84.1 562s gtester-report (GLib utils) version 2.84.1. 562s autopkgtest [18:46:09]: test libgio-2.0-dev-bin: -----------------------] 566s libgio-2.0-dev-bin PASS (superficial) 566s autopkgtest [18:46:13]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 570s autopkgtest [18:46:17]: test libglib2.0-dev: preparing testbed 591s autopkgtest [18:46:38]: testbed dpkg architecture: armhf 592s autopkgtest [18:46:39]: testbed apt version: 3.0.0 596s autopkgtest [18:46:43]: @@@@@@@@@@@@@@@@@@@@ test bed setup 598s autopkgtest [18:46:45]: testbed release detected to be: plucky 605s autopkgtest [18:46:52]: updating testbed package index (apt update) 607s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 607s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 607s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 607s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 607s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5196 B] 607s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [5772 B] 607s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 607s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 607s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [18.0 kB] 607s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 607s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 607s Get:12 http://ftpmaster.internal/ubuntu plucky-updates/main Sources [15.5 kB] 607s Get:13 http://ftpmaster.internal/ubuntu plucky-updates/universe Sources [6216 B] 607s Get:14 http://ftpmaster.internal/ubuntu plucky-updates/main armhf Packages [24.5 kB] 608s Get:15 http://ftpmaster.internal/ubuntu plucky-updates/universe armhf Packages [23.3 kB] 608s Get:16 http://ftpmaster.internal/ubuntu plucky-security/universe Sources [6216 B] 608s Get:17 http://ftpmaster.internal/ubuntu plucky-security/main Sources [14.4 kB] 608s Get:18 http://ftpmaster.internal/ubuntu plucky-security/multiverse Sources [7124 B] 608s Get:19 http://ftpmaster.internal/ubuntu plucky-security/restricted Sources [10.4 kB] 608s Get:20 http://ftpmaster.internal/ubuntu plucky-security/main armhf Packages [23.6 kB] 608s Get:21 http://ftpmaster.internal/ubuntu plucky-security/restricted armhf Packages [756 B] 608s Get:22 http://ftpmaster.internal/ubuntu plucky-security/universe armhf Packages [22.5 kB] 608s Get:23 http://ftpmaster.internal/ubuntu plucky-security/multiverse armhf Packages [956 B] 609s Fetched 707 kB in 1s (625 kB/s) 610s Reading package lists... 615s autopkgtest [18:47:02]: upgrading testbed (apt dist-upgrade and autopurge) 617s Reading package lists... 617s Building dependency tree... 617s Reading state information... 618s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 618s Starting 2 pkgProblemResolver with broken count: 0 618s Done 618s Entering ResolveByKeep 619s 619s Calculating upgrade... 619s The following packages will be upgraded: 619s tzdata 619s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 619s Need to get 198 kB of archives. 619s After this operation, 0 B of additional disk space will be used. 619s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata all 2025b-1ubuntu1.1 [198 kB] 620s Preconfiguring packages ... 620s Fetched 198 kB in 0s (470 kB/s) 620s (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 ... 63953 files and directories currently installed.) 620s Preparing to unpack .../tzdata_2025b-1ubuntu1.1_all.deb ... 620s Unpacking tzdata (2025b-1ubuntu1.1) over (2025b-1ubuntu1) ... 621s Setting up tzdata (2025b-1ubuntu1.1) ... 621s 621s Current default time zone: 'Etc/UTC' 621s Local time is now: Tue May 6 18:47:08 UTC 2025. 621s Universal Time is now: Tue May 6 18:47:08 UTC 2025. 621s Run 'dpkg-reconfigure tzdata' if you wish to change it. 621s 623s Reading package lists... 623s Building dependency tree... 623s Reading state information... 623s Starting pkgProblemResolver with broken count: 0 623s Starting 2 pkgProblemResolver with broken count: 0 623s Done 624s Solving dependencies... 624s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 626s autopkgtest [18:47:13]: rebooting testbed after setup commands that affected boot 687s Reading package lists... 687s Building dependency tree... 687s Reading state information... 687s Starting pkgProblemResolver with broken count: 0 687s Starting 2 pkgProblemResolver with broken count: 0 687s Done 688s The following NEW packages will be installed: 688s build-essential cpp cpp-14 cpp-14-arm-linux-gnueabihf 688s cpp-arm-linux-gnueabihf g++ g++-14 g++-14-arm-linux-gnueabihf 688s g++-arm-linux-gnueabihf gcc gcc-14 gcc-14-arm-linux-gnueabihf 688s gcc-arm-linux-gnueabihf gir1.2-glib-2.0-dev girepository-tools libasan8 688s libblkid-dev libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev 688s libgcc-14-dev libgio-2.0-dev libgio-2.0-dev-bin libgirepository-2.0-0 688s libglib2.0-bin libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 688s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 688s libpcre2-posix3 libpkgconf3 libselinux1-dev libsepol-dev libstdc++-14-dev 688s libsysprof-capture-4-dev libubsan1 linux-libc-dev native-architecture 688s pkgconf pkgconf-bin rpcsvc-proto uuid-dev zlib1g-dev 688s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 688s Need to get 56.0 MB of archives. 688s After this operation, 176 MB of additional disk space will be used. 688s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libc-dev-bin armhf 2.41-6ubuntu1 [21.7 kB] 688s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf linux-libc-dev armhf 6.14.0-15.15 [1687 kB] 690s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf libcrypt-dev armhf 1:4.4.38-1 [120 kB] 690s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf rpcsvc-proto armhf 1.4.2-0ubuntu7 [62.2 kB] 690s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf libc6-dev armhf 2.41-6ubuntu1 [1396 kB] 690s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf libisl23 armhf 0.27-1 [546 kB] 690s Get:7 http://ftpmaster.internal/ubuntu plucky/main armhf libmpc3 armhf 1.3.1-1build2 [47.1 kB] 690s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [9221 kB] 692s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-14 armhf 14.2.0-19ubuntu2 [1032 B] 692s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf cpp-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [5578 B] 692s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf cpp armhf 4:14.2.0-1ubuntu1 [22.4 kB] 692s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libcc1-0 armhf 15-20250404-0ubuntu1 [43.3 kB] 692s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libgomp1 armhf 15-20250404-0ubuntu1 [128 kB] 692s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libasan8 armhf 15-20250404-0ubuntu1 [2951 kB] 692s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libubsan1 armhf 15-20250404-0ubuntu1 [1188 kB] 692s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libgcc-14-dev armhf 14.2.0-19ubuntu2 [897 kB] 692s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [18.0 MB] 693s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-14 armhf 14.2.0-19ubuntu2 [510 kB] 693s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf gcc-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [1218 B] 693s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf gcc armhf 4:14.2.0-1ubuntu1 [5004 B] 693s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf libstdc++-14-dev armhf 14.2.0-19ubuntu2 [2576 kB] 693s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14-arm-linux-gnueabihf armhf 14.2.0-19ubuntu2 [10.5 MB] 694s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf g++-14 armhf 14.2.0-19ubuntu2 [23.0 kB] 694s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf g++-arm-linux-gnueabihf armhf 4:14.2.0-1ubuntu1 [966 B] 694s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf g++ armhf 4:14.2.0-1ubuntu1 [1084 B] 694s Get:26 http://ftpmaster.internal/ubuntu plucky/main armhf build-essential armhf 12.12ubuntu1 [5088 B] 694s Get:27 http://ftpmaster.internal/ubuntu plucky/main armhf gir1.2-glib-2.0-dev armhf 2.84.1-1 [862 kB] 694s Get:28 http://ftpmaster.internal/ubuntu plucky/main armhf native-architecture all 0.2.6 [2140 B] 694s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf libgirepository-2.0-0 armhf 2.84.1-1 [99.2 kB] 694s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf girepository-tools armhf 2.84.1-1 [109 kB] 694s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf libffi-dev armhf 3.4.7-1 [57.2 kB] 694s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf uuid-dev armhf 2.40.2-14ubuntu1 [52.6 kB] 694s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf libblkid-dev armhf 2.40.2-14ubuntu1 [218 kB] 694s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libsepol-dev armhf 3.7-1 [381 kB] 694s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-16-0 armhf 10.45-1 [207 kB] 694s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-32-0 armhf 10.45-1 [197 kB] 694s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-posix3 armhf 10.45-1 [6300 B] 694s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libpcre2-dev armhf 10.45-1 [752 kB] 694s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf libselinux1-dev armhf 3.7-3ubuntu3 [160 kB] 694s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf libmount-dev armhf 2.40.2-14ubuntu1 [34.6 kB] 694s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libsysprof-capture-4-dev armhf 48.0-2 [49.3 kB] 694s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf libpkgconf3 armhf 1.8.1-4 [26.6 kB] 694s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf-bin armhf 1.8.1-4 [21.2 kB] 694s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf pkgconf armhf 1.8.1-4 [16.8 kB] 694s Get:45 http://ftpmaster.internal/ubuntu plucky/main armhf zlib1g-dev armhf 1:1.3.dfsg+really1.3.1-1ubuntu1 [880 kB] 694s Get:46 http://ftpmaster.internal/ubuntu plucky/main armhf libgio-2.0-dev armhf 2.84.1-1 [1714 kB] 694s Get:47 http://ftpmaster.internal/ubuntu plucky/main armhf libgio-2.0-dev-bin armhf 2.84.1-1 [130 kB] 694s Get:48 http://ftpmaster.internal/ubuntu plucky/main armhf libglib2.0-bin armhf 2.84.1-1 [92.7 kB] 694s Get:49 http://ftpmaster.internal/ubuntu plucky/main armhf libglib2.0-dev-bin armhf 2.84.1-1 [18.1 kB] 694s Get:50 http://ftpmaster.internal/ubuntu plucky/main armhf libglib2.0-dev armhf 2.84.1-1 [18.9 kB] 694s Fetched 56.0 MB in 6s (9716 kB/s) 694s Selecting previously unselected package libc-dev-bin. 694s (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 ... 63953 files and directories currently installed.) 694s Preparing to unpack .../00-libc-dev-bin_2.41-6ubuntu1_armhf.deb ... 694s Unpacking libc-dev-bin (2.41-6ubuntu1) ... 694s Selecting previously unselected package linux-libc-dev:armhf. 694s Preparing to unpack .../01-linux-libc-dev_6.14.0-15.15_armhf.deb ... 694s Unpacking linux-libc-dev:armhf (6.14.0-15.15) ... 695s Selecting previously unselected package libcrypt-dev:armhf. 695s Preparing to unpack .../02-libcrypt-dev_1%3a4.4.38-1_armhf.deb ... 695s Unpacking libcrypt-dev:armhf (1:4.4.38-1) ... 695s Selecting previously unselected package rpcsvc-proto. 695s Preparing to unpack .../03-rpcsvc-proto_1.4.2-0ubuntu7_armhf.deb ... 695s Unpacking rpcsvc-proto (1.4.2-0ubuntu7) ... 695s Selecting previously unselected package libc6-dev:armhf. 695s Preparing to unpack .../04-libc6-dev_2.41-6ubuntu1_armhf.deb ... 695s Unpacking libc6-dev:armhf (2.41-6ubuntu1) ... 695s Selecting previously unselected package libisl23:armhf. 695s Preparing to unpack .../05-libisl23_0.27-1_armhf.deb ... 695s Unpacking libisl23:armhf (0.27-1) ... 695s Selecting previously unselected package libmpc3:armhf. 695s Preparing to unpack .../06-libmpc3_1.3.1-1build2_armhf.deb ... 695s Unpacking libmpc3:armhf (1.3.1-1build2) ... 695s Selecting previously unselected package cpp-14-arm-linux-gnueabihf. 695s Preparing to unpack .../07-cpp-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 695s Unpacking cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 695s Selecting previously unselected package cpp-14. 695s Preparing to unpack .../08-cpp-14_14.2.0-19ubuntu2_armhf.deb ... 695s Unpacking cpp-14 (14.2.0-19ubuntu2) ... 695s Selecting previously unselected package cpp-arm-linux-gnueabihf. 695s Preparing to unpack .../09-cpp-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 695s Unpacking cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 695s Selecting previously unselected package cpp. 695s Preparing to unpack .../10-cpp_4%3a14.2.0-1ubuntu1_armhf.deb ... 695s Unpacking cpp (4:14.2.0-1ubuntu1) ... 695s Selecting previously unselected package libcc1-0:armhf. 695s Preparing to unpack .../11-libcc1-0_15-20250404-0ubuntu1_armhf.deb ... 695s Unpacking libcc1-0:armhf (15-20250404-0ubuntu1) ... 695s Selecting previously unselected package libgomp1:armhf. 695s Preparing to unpack .../12-libgomp1_15-20250404-0ubuntu1_armhf.deb ... 695s Unpacking libgomp1:armhf (15-20250404-0ubuntu1) ... 695s Selecting previously unselected package libasan8:armhf. 695s Preparing to unpack .../13-libasan8_15-20250404-0ubuntu1_armhf.deb ... 695s Unpacking libasan8:armhf (15-20250404-0ubuntu1) ... 695s Selecting previously unselected package libubsan1:armhf. 695s Preparing to unpack .../14-libubsan1_15-20250404-0ubuntu1_armhf.deb ... 695s Unpacking libubsan1:armhf (15-20250404-0ubuntu1) ... 695s Selecting previously unselected package libgcc-14-dev:armhf. 695s Preparing to unpack .../15-libgcc-14-dev_14.2.0-19ubuntu2_armhf.deb ... 695s Unpacking libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 695s Selecting previously unselected package gcc-14-arm-linux-gnueabihf. 695s Preparing to unpack .../16-gcc-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 695s Unpacking gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 696s Selecting previously unselected package gcc-14. 696s Preparing to unpack .../17-gcc-14_14.2.0-19ubuntu2_armhf.deb ... 696s Unpacking gcc-14 (14.2.0-19ubuntu2) ... 696s Selecting previously unselected package gcc-arm-linux-gnueabihf. 696s Preparing to unpack .../18-gcc-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 696s Unpacking gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 696s Selecting previously unselected package gcc. 696s Preparing to unpack .../19-gcc_4%3a14.2.0-1ubuntu1_armhf.deb ... 696s Unpacking gcc (4:14.2.0-1ubuntu1) ... 696s Selecting previously unselected package libstdc++-14-dev:armhf. 696s Preparing to unpack .../20-libstdc++-14-dev_14.2.0-19ubuntu2_armhf.deb ... 696s Unpacking libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 696s Selecting previously unselected package g++-14-arm-linux-gnueabihf. 696s Preparing to unpack .../21-g++-14-arm-linux-gnueabihf_14.2.0-19ubuntu2_armhf.deb ... 696s Unpacking g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 696s Selecting previously unselected package g++-14. 696s Preparing to unpack .../22-g++-14_14.2.0-19ubuntu2_armhf.deb ... 696s Unpacking g++-14 (14.2.0-19ubuntu2) ... 696s Selecting previously unselected package g++-arm-linux-gnueabihf. 696s Preparing to unpack .../23-g++-arm-linux-gnueabihf_4%3a14.2.0-1ubuntu1_armhf.deb ... 696s Unpacking g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 696s Selecting previously unselected package g++. 696s Preparing to unpack .../24-g++_4%3a14.2.0-1ubuntu1_armhf.deb ... 696s Unpacking g++ (4:14.2.0-1ubuntu1) ... 696s Selecting previously unselected package build-essential. 696s Preparing to unpack .../25-build-essential_12.12ubuntu1_armhf.deb ... 696s Unpacking build-essential (12.12ubuntu1) ... 696s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 696s Preparing to unpack .../26-gir1.2-glib-2.0-dev_2.84.1-1_armhf.deb ... 696s Unpacking gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 696s Selecting previously unselected package native-architecture. 697s Preparing to unpack .../27-native-architecture_0.2.6_all.deb ... 697s Unpacking native-architecture (0.2.6) ... 697s Selecting previously unselected package libgirepository-2.0-0:armhf. 697s Preparing to unpack .../28-libgirepository-2.0-0_2.84.1-1_armhf.deb ... 697s Unpacking libgirepository-2.0-0:armhf (2.84.1-1) ... 697s Selecting previously unselected package girepository-tools:armhf. 697s Preparing to unpack .../29-girepository-tools_2.84.1-1_armhf.deb ... 697s Unpacking girepository-tools:armhf (2.84.1-1) ... 697s Selecting previously unselected package libffi-dev:armhf. 697s Preparing to unpack .../30-libffi-dev_3.4.7-1_armhf.deb ... 697s Unpacking libffi-dev:armhf (3.4.7-1) ... 697s Selecting previously unselected package uuid-dev:armhf. 697s Preparing to unpack .../31-uuid-dev_2.40.2-14ubuntu1_armhf.deb ... 697s Unpacking uuid-dev:armhf (2.40.2-14ubuntu1) ... 697s Selecting previously unselected package libblkid-dev:armhf. 697s Preparing to unpack .../32-libblkid-dev_2.40.2-14ubuntu1_armhf.deb ... 697s Unpacking libblkid-dev:armhf (2.40.2-14ubuntu1) ... 697s Selecting previously unselected package libsepol-dev:armhf. 697s Preparing to unpack .../33-libsepol-dev_3.7-1_armhf.deb ... 697s Unpacking libsepol-dev:armhf (3.7-1) ... 697s Selecting previously unselected package libpcre2-16-0:armhf. 697s Preparing to unpack .../34-libpcre2-16-0_10.45-1_armhf.deb ... 697s Unpacking libpcre2-16-0:armhf (10.45-1) ... 697s Selecting previously unselected package libpcre2-32-0:armhf. 697s Preparing to unpack .../35-libpcre2-32-0_10.45-1_armhf.deb ... 697s Unpacking libpcre2-32-0:armhf (10.45-1) ... 697s Selecting previously unselected package libpcre2-posix3:armhf. 697s Preparing to unpack .../36-libpcre2-posix3_10.45-1_armhf.deb ... 697s Unpacking libpcre2-posix3:armhf (10.45-1) ... 697s Selecting previously unselected package libpcre2-dev:armhf. 697s Preparing to unpack .../37-libpcre2-dev_10.45-1_armhf.deb ... 697s Unpacking libpcre2-dev:armhf (10.45-1) ... 697s Selecting previously unselected package libselinux1-dev:armhf. 697s Preparing to unpack .../38-libselinux1-dev_3.7-3ubuntu3_armhf.deb ... 697s Unpacking libselinux1-dev:armhf (3.7-3ubuntu3) ... 697s Selecting previously unselected package libmount-dev:armhf. 697s Preparing to unpack .../39-libmount-dev_2.40.2-14ubuntu1_armhf.deb ... 697s Unpacking libmount-dev:armhf (2.40.2-14ubuntu1) ... 697s Selecting previously unselected package libsysprof-capture-4-dev:armhf. 697s Preparing to unpack .../40-libsysprof-capture-4-dev_48.0-2_armhf.deb ... 697s Unpacking libsysprof-capture-4-dev:armhf (48.0-2) ... 697s Selecting previously unselected package libpkgconf3:armhf. 697s Preparing to unpack .../41-libpkgconf3_1.8.1-4_armhf.deb ... 697s Unpacking libpkgconf3:armhf (1.8.1-4) ... 697s Selecting previously unselected package pkgconf-bin. 697s Preparing to unpack .../42-pkgconf-bin_1.8.1-4_armhf.deb ... 697s Unpacking pkgconf-bin (1.8.1-4) ... 697s Selecting previously unselected package pkgconf:armhf. 697s Preparing to unpack .../43-pkgconf_1.8.1-4_armhf.deb ... 697s Unpacking pkgconf:armhf (1.8.1-4) ... 697s Selecting previously unselected package zlib1g-dev:armhf. 697s Preparing to unpack .../44-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu1_armhf.deb ... 697s Unpacking zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 697s Selecting previously unselected package libgio-2.0-dev:armhf. 697s Preparing to unpack .../45-libgio-2.0-dev_2.84.1-1_armhf.deb ... 697s Unpacking libgio-2.0-dev:armhf (2.84.1-1) ... 697s Selecting previously unselected package libgio-2.0-dev-bin. 697s Preparing to unpack .../46-libgio-2.0-dev-bin_2.84.1-1_armhf.deb ... 697s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 697s Selecting previously unselected package libglib2.0-bin. 697s Preparing to unpack .../47-libglib2.0-bin_2.84.1-1_armhf.deb ... 697s Unpacking libglib2.0-bin (2.84.1-1) ... 697s Selecting previously unselected package libglib2.0-dev-bin. 697s Preparing to unpack .../48-libglib2.0-dev-bin_2.84.1-1_armhf.deb ... 697s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 697s Selecting previously unselected package libglib2.0-dev:armhf. 697s Preparing to unpack .../49-libglib2.0-dev_2.84.1-1_armhf.deb ... 697s Unpacking libglib2.0-dev:armhf (2.84.1-1) ... 697s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 698s Setting up native-architecture (0.2.6) ... 698s Setting up libgirepository-2.0-0:armhf (2.84.1-1) ... 698s Setting up linux-libc-dev:armhf (6.14.0-15.15) ... 698s Setting up libglib2.0-bin (2.84.1-1) ... 698s Setting up libgomp1:armhf (15-20250404-0ubuntu1) ... 698s Setting up libffi-dev:armhf (3.4.7-1) ... 698s Setting up libpcre2-16-0:armhf (10.45-1) ... 698s Setting up libsysprof-capture-4-dev:armhf (48.0-2) ... 698s Setting up libpcre2-32-0:armhf (10.45-1) ... 698s Setting up libpkgconf3:armhf (1.8.1-4) ... 698s Setting up rpcsvc-proto (1.4.2-0ubuntu7) ... 698s Setting up libmpc3:armhf (1.3.1-1build2) ... 698s Setting up libsepol-dev:armhf (3.7-1) ... 698s Setting up pkgconf-bin (1.8.1-4) ... 698s Setting up libubsan1:armhf (15-20250404-0ubuntu1) ... 698s Setting up libpcre2-posix3:armhf (10.45-1) ... 698s Setting up gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 698s Setting up libcrypt-dev:armhf (1:4.4.38-1) ... 698s Setting up libasan8:armhf (15-20250404-0ubuntu1) ... 698s Setting up libgcc-14-dev:armhf (14.2.0-19ubuntu2) ... 698s Setting up libisl23:armhf (0.27-1) ... 698s Setting up libc-dev-bin (2.41-6ubuntu1) ... 698s Setting up libcc1-0:armhf (15-20250404-0ubuntu1) ... 698s Setting up cpp-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 698s Setting up girepository-tools:armhf (2.84.1-1) ... 698s Setting up gcc-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 698s Setting up pkgconf:armhf (1.8.1-4) ... 698s Setting up cpp-14 (14.2.0-19ubuntu2) ... 698s Setting up libc6-dev:armhf (2.41-6ubuntu1) ... 698s Setting up libstdc++-14-dev:armhf (14.2.0-19ubuntu2) ... 698s Setting up cpp-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 698s Setting up gcc-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 698s Setting up libglib2.0-dev-bin (2.84.1-1) ... 698s Setting up g++-14-arm-linux-gnueabihf (14.2.0-19ubuntu2) ... 698s Setting up libpcre2-dev:armhf (10.45-1) ... 698s Setting up libselinux1-dev:armhf (3.7-3ubuntu3) ... 698s Setting up gcc-14 (14.2.0-19ubuntu2) ... 698s Setting up uuid-dev:armhf (2.40.2-14ubuntu1) ... 698s Setting up zlib1g-dev:armhf (1:1.3.dfsg+really1.3.1-1ubuntu1) ... 698s Setting up cpp (4:14.2.0-1ubuntu1) ... 698s Setting up g++-14 (14.2.0-19ubuntu2) ... 698s Setting up g++-arm-linux-gnueabihf (4:14.2.0-1ubuntu1) ... 698s Setting up libblkid-dev:armhf (2.40.2-14ubuntu1) ... 698s Setting up gcc (4:14.2.0-1ubuntu1) ... 698s Setting up g++ (4:14.2.0-1ubuntu1) ... 698s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 698s Setting up build-essential (12.12ubuntu1) ... 698s Setting up libmount-dev:armhf (2.40.2-14ubuntu1) ... 698s Setting up libgio-2.0-dev:armhf (2.84.1-1) ... 698s Processing triggers for install-info (7.1.1-1) ... 698s Processing triggers for libc-bin (2.41-6ubuntu1) ... 698s Processing triggers for man-db (2.13.0-1) ... 699s Processing triggers for libglib2.0-0t64:armhf (2.84.1-1) ... 699s No schema files found: doing nothing. 699s Setting up libglib2.0-dev:armhf (2.84.1-1) ... 715s autopkgtest [18:48:42]: test libglib2.0-dev: [----------------------- 717s + debian/tests/build 717s + mode=dynamic 717s + getopt -o --long static -n debian/tests/build -- 717s + getopt_temp= -- 717s + eval set -- -- 717s + set -- -- 717s + true 717s + shift 717s + break 717s + mktemp -d 717s + WORKDIR=/tmp/tmp.8MIMbcysU8 717s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 717s + cd /tmp/tmp.8MIMbcysU8 717s + [ -n ] 717s + CROSS_COMPILE= 717s + cat 717s + cat 717s + cat 717s + cat 717s + cat 717s + cat 717s + cflags= 717s + pcflags= 717s + packages=glib-2.0 717s + pkg-config --cflags --libs glib-2.0 717s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 717s + echo build (glib, dynamic): OK 717s + [ -x glib-dynamic ] 717s + foo=bar ./glib-dynamic 717s build (glib, dynamic): OK 717s + echo run (glib, dynamic): OK 717s + cflags= 717s + pcflags= 717s + packages=gobject-2.0 717s run (glib, dynamic): OK 717s + pkg-config --cflags --libs gobject-2.0 717s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 717s build (gobject, dynamic): OK 717s + echo build (gobject, dynamic): OK 717s + [ -x gobject-dynamic ] 717s + foo=bar ./gobject-dynamic 717s + echo run (gobject, dynamic): OK 717s + cflags= 717s + pcflags= 717s + packages=gio-2.0 717s + pkg-config --cflags --libs gio-2.0 717s run (gobject, dynamic): OK 717s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/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 718s build (gio, dynamic): OK 718s + echo build (gio, dynamic): OK 718s + [ -x gio-dynamic ] 718s + foo=bar ./gio-dynamic 718s run (gio, dynamic): OK 718s + echo run (gio, dynamic): OK 718s + cflags= 718s + pcflags= 718s + packages=gio-unix-2.0 718s + pkg-config --cflags --libs gio-unix-2.0 718s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/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 718s build (gio-unix, dynamic): OK 718s + echo build (gio-unix, dynamic): OK 718s + [ -x gio-unix-dynamic ] 718s + foo=bar ./gio-unix-dynamic 718s + echo run (gio-unix, dynamic): OK 718s + cflags= 718s + pcflags= 718s + packages=gmodule-2.0 718s + pkg-config --cflags --libs gmodule-2.0 718s run (gio-unix, dynamic): OK 718s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 718s + echo build (gmodule, dynamic): OK 718s + [ -x gmodule-dynamic ] 718s + foo=bar ./gmodule-dynamic 718s build (gmodule, dynamic): OK 718s run (gmodule, dynamic): OK 718s + echo run (gmodule, dynamic): OK 718s + cflags= 718s + pcflags= 718s + packages=gthread-2.0 718s + pkg-config --cflags --libs gthread-2.0 718s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 718s build (gthread, dynamic): OK 718s run (gthread, dynamic): OK 718s + echo build (gthread, dynamic): OK 718s + [ -x gthread-dynamic ] 718s + foo=bar ./gthread-dynamic 718s + echo run (gthread, dynamic): OK 718s + rm -rf /tmp/tmp.8MIMbcysU8 718s + debian/tests/build-static 718s + mode=dynamic 718s + getopt -o --long static -n debian/tests/build -- --static 718s + getopt_temp= --static -- 718s + eval set -- --static -- 718s + set -- --static -- 718s + true 718s + mode=static 718s + shift 718s + continue 718s + true 718s + shift 718s + break 718s + mktemp -d 718s + WORKDIR=/tmp/tmp.q4NeZhXivZ 718s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 718s + cd /tmp/tmp.q4NeZhXivZ 718s + [ -n ] 718s + CROSS_COMPILE= 718s + cat 718s + cat 718s + cat 718s + cat 718s + cat 718s + cat 718s + cflags= 718s + pcflags= 718s + packages=glib-2.0 718s + cflags=-static 718s + pcflags=--static 718s + pkg-config --static --cflags --libs glib-2.0 718s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 718s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 718s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s build (glib, static): OK 718s run (glib, static): OK 718s + echo build (glib, static): OK 718s + [ -x glib-static ] 718s + foo=bar ./glib-static 718s + echo run (glib, static): OK 718s + cflags= 718s + pcflags= 718s + packages=gobject-2.0 718s + cflags=-static 718s + pcflags=--static 718s + pkg-config --static --cflags --libs gobject-2.0 718s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lffi 718s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 718s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s + echo build (gobject, static): OK 718s + [ -x gobject-static ] 718s + foo=bar ./gobject-static 718s + echo run (gobject, static): OK 718s + cflags= 718s + pcflags= 718s + packages=gio-2.0 718s + cflags=-static 718s + pcflags=--static 718s + continue 718s + cflags= 718s + pcflags= 718s + packages=gio-unix-2.0 718s + cflags=-static 718s + pcflags=--static 718s + continue 718s + cflags= 718s + pcflags= 718s + packages=gmodule-2.0 718s + cflags=-static 718s + pcflags=--static 718s build (gobject, static): OK 718s + pkg-config --static --cflags --libs gmodule-2.0 718s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 718s run (gobject, static): OK 718s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 718s (.text+0x412): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 718s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 718s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 719s + echo build (gmodule, static): OK 719s + [ -x gmodule-static ] 719s + foo=bar ./gmodule-static 719s build (gmodule, static): OK 719s + echo run (gmodule, static): OK 719s + cflags= 719s + pcflags= 719s + packages=gthread-2.0 719s + cflags=-static 719s + pcflags=--static 719s + pkg-config --static --cflags --libs gthread-2.0 719s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 -latomic -lm -pthread -lsysprof-capture-4 -pthread -lpcre2-8 719s run (gmodule, static): OK 719s /usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/14/../../../arm-linux-gnueabihf/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 719s (.text+0x9a): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 719s /usr/bin/ld: (.text+0x1a0): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 719s /usr/bin/ld: (.text+0xbe): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 719s build (gthread, static): OK 719s + echo build (gthread, static): OK 719s + [ -x gthread-static ] 719s + foo=bar ./gthread-static 719s + echo run (gthread, static): OK 719s + rm -rf /tmp/tmp.q4NeZhXivZ 719s run (gthread, static): OK 719s + debian/tests/girepository-tools 719s + cd /tmp/autopkgtest.6YAuRe/autopkgtest_tmp 719s + dpkg-architecture -qDEB_HOST_GNU_TYPE 719s + DEB_HOST_GNU_TYPE=arm-linux-gnueabihf 719s + dpkg-architecture -qDEB_HOST_MULTIARCH 719s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 719s + arm-linux-gnueabihf-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 719s typelib: GLib-2.0 719s + arm-linux-gnueabihf-gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 719s + arm-linux-gnueabihf-gi-decompile-typelib -o GLib.gir GLib.typelib 719s + debian/tests/libgio-2.0-dev-bin 719s + gdbus-codegen --help 719s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 719s [--c-namespace NAMESPACE] [--c-generate-object-manager] 719s [--c-generate-autocleanup {none,objects,all}] 719s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 719s [--generate-rst OUTFILES] [--pragma-once] 719s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 719s [--glib-min-required VERSION] 719s [--glib-max-allowed VERSION] 719s [--symbol-decorator SYMBOL_DECORATOR] 719s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 719s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 719s [--generate-c-code OUTFILES | --header | --body | 719s --interface-info-header | --interface-info-body] 719s [--output FILE | --output-directory OUTDIR] 719s FILE [FILE ...] 719s 719s D-Bus code and documentation generator 719s 719s positional arguments: 719s FILE D-Bus introspection XML file 719s 719s options: 719s -h, --help show this help message and exit 719s --interface-prefix PREFIX 719s String to strip from D-Bus interface names for code 719s and docs 719s --c-namespace NAMESPACE 719s The namespace to use for generated C code 719s --c-generate-object-manager 719s Generate a GDBusObjectManagerClient subclass when 719s generating C code 719s --c-generate-autocleanup {none,objects,all} 719s Generate autocleanup support 719s --generate-docbook OUTFILES 719s Generate Docbook in OUTFILES-org.Project.IFace.xml 719s --generate-md OUTFILES 719s Generate Markdown in OUTFILES-org.Project.IFace.md 719s --generate-rst OUTFILES 719s Generate reStructuredText in OUTFILES- 719s org.Project.IFace.rst 719s --pragma-once Use "pragma once" as the inclusion guard 719s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 719s Add annotation (may be used several times) 719s --glib-min-required VERSION 719s Minimum version of GLib to be supported by the 719s outputted code (default: 2.30) 719s --glib-max-allowed VERSION 719s Maximum version of GLib to be used by the outputted 719s code (default: current GLib version) 719s --symbol-decorator SYMBOL_DECORATOR 719s Macro used to decorate a symbol in the outputted 719s header, possibly to export symbols 719s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 719s Additional header required for decorator specified by 719s --symbol-decorator 719s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 719s Additional define required for decorator specified by 719s --symbol-decorator 719s --generate-c-code OUTFILES 719s Generate C code in OUTFILES.[ch] 719s --header Generate C headers 719s --body Generate C code 719s --interface-info-header 719s Generate GDBusInterfaceInfo C header 719s --interface-info-body 719s Generate GDBusInterfaceInfo C code 719s --output FILE Write output into the specified file 719s --output-directory OUTDIR 719s Location to output generated files 719s + glib-compile-resources --version 719s 2.84.1 719s + glib-genmarshal --version 719s glib-genmarshal version 2.84.1 719s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 719s You may redistribute copies of glib-genmarshal under the terms of 719s the GNU General Public License which can be found in the 719s GLib source package. Sources, examples and contact 719s information are available at http://www.gtk.org 719s + glib-gettextize --version 719s + glib-mkenums --version 719s /usr/bin/glib-gettextize (GNU glib) 2.84.1 719s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 719s This is free software; see the source for copying conditions. There is NO 719s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 719s Written by Ulrich Drepper 719s glib-mkenums version 2.84.1 719s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 719s You may redistribute copies of glib-mkenums under the terms of 719s the GNU General Public License which can be found in the 719s GLib source package. Sources, examples and contact 719s information are available at http://www.gtk.org 719s + gobject-query tree 719s + gtester --version 719s GObject 719s + gtester-report --version 719s gtester version 2.84.1 719s gtester-report (GLib utils) version 2.84.1. 719s + cd /tmp/autopkgtest.6YAuRe/autopkgtest_tmp 719s + dpkg-architecture -qDEB_HOST_MULTIARCH 719s + DEB_HOST_MULTIARCH=arm-linux-gnueabihf 719s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 719s + gi-compile-repository -o GLib.typelib /usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir 719s typelib: GLib-2.0 719s + gi-decompile-typelib -o GLib.gir GLib.typelib 720s autopkgtest [18:48:47]: test libglib2.0-dev: -----------------------] 723s autopkgtest [18:48:50]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 723s libglib2.0-dev PASS (superficial) 727s autopkgtest [18:48:54]: test installed-tests: preparing testbed 748s autopkgtest [18:49:15]: testbed dpkg architecture: armhf 750s autopkgtest [18:49:17]: testbed apt version: 3.0.0 753s autopkgtest [18:49:20]: @@@@@@@@@@@@@@@@@@@@ test bed setup 755s autopkgtest [18:49:22]: testbed release detected to be: plucky 762s autopkgtest [18:49:29]: updating testbed package index (apt update) 764s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 764s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 764s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 764s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 764s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5196 B] 764s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [5772 B] 764s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 764s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 764s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [18.0 kB] 764s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 764s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 764s Get:12 http://ftpmaster.internal/ubuntu plucky-updates/universe Sources [6216 B] 764s Get:13 http://ftpmaster.internal/ubuntu plucky-updates/main Sources [15.5 kB] 764s Get:14 http://ftpmaster.internal/ubuntu plucky-updates/main armhf Packages [24.5 kB] 764s Get:15 http://ftpmaster.internal/ubuntu plucky-updates/universe armhf Packages [23.3 kB] 764s Get:16 http://ftpmaster.internal/ubuntu plucky-security/universe Sources [6216 B] 764s Get:17 http://ftpmaster.internal/ubuntu plucky-security/main Sources [14.4 kB] 764s Get:18 http://ftpmaster.internal/ubuntu plucky-security/restricted Sources [10.4 kB] 764s Get:19 http://ftpmaster.internal/ubuntu plucky-security/multiverse Sources [7124 B] 764s Get:20 http://ftpmaster.internal/ubuntu plucky-security/main armhf Packages [23.6 kB] 764s Get:21 http://ftpmaster.internal/ubuntu plucky-security/restricted armhf Packages [756 B] 764s Get:22 http://ftpmaster.internal/ubuntu plucky-security/universe armhf Packages [22.5 kB] 764s Get:23 http://ftpmaster.internal/ubuntu plucky-security/multiverse armhf Packages [956 B] 766s Fetched 707 kB in 1s (842 kB/s) 767s Reading package lists... 772s autopkgtest [18:49:39]: upgrading testbed (apt dist-upgrade and autopurge) 774s Reading package lists... 774s Building dependency tree... 774s Reading state information... 774s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 774s Starting 2 pkgProblemResolver with broken count: 0 774s Done 775s Entering ResolveByKeep 775s 775s Calculating upgrade... 776s The following packages will be upgraded: 776s tzdata 776s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 776s Need to get 198 kB of archives. 776s After this operation, 0 B of additional disk space will be used. 776s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata all 2025b-1ubuntu1.1 [198 kB] 776s Preconfiguring packages ... 776s Fetched 198 kB in 0s (579 kB/s) 777s (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 ... 63953 files and directories currently installed.) 777s Preparing to unpack .../tzdata_2025b-1ubuntu1.1_all.deb ... 777s Unpacking tzdata (2025b-1ubuntu1.1) over (2025b-1ubuntu1) ... 777s Setting up tzdata (2025b-1ubuntu1.1) ... 777s 777s Current default time zone: 'Etc/UTC' 777s Local time is now: Tue May 6 18:49:44 UTC 2025. 777s Universal Time is now: Tue May 6 18:49:44 UTC 2025. 777s Run 'dpkg-reconfigure tzdata' if you wish to change it. 777s 779s Reading package lists... 779s Building dependency tree... 779s Reading state information... 779s Starting pkgProblemResolver with broken count: 0 779s Starting 2 pkgProblemResolver with broken count: 0 779s Done 780s Solving dependencies... 780s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 782s autopkgtest [18:49:49]: rebooting testbed after setup commands that affected boot 842s Reading package lists... 843s Building dependency tree... 843s Reading state information... 843s Starting pkgProblemResolver with broken count: 0 843s Starting 2 pkgProblemResolver with broken count: 0 843s Done 844s The following NEW packages will be installed: 844s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 844s gnome-desktop-testing libfontenc1 libfreetype6 libgbm1 libgio-2.0-dev-bin 844s libgirepository-2.0-0 libgl1 libgl1-mesa-dri libglib2.0-bin 844s libglib2.0-dev-bin libglib2.0-tests libglvnd0 libglx-mesa0 libglx0 libice6 844s libllvm19 libpixman-1-0 libsm6 libvulkan1 libwayland-server0 libx11-xcb1 844s libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 libxcb-shm0 844s libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 libxpm4 libxrandr2 844s libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 mesa-libgallium 844s native-architecture python3-dbusmock tzdata-legacy x11-common x11-xkb-utils 844s xserver-common xvfb 844s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 844s Need to get 42.7 MB of archives. 844s After this operation, 194 MB of additional disk space will be used. 844s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf dbus-x11 armhf 1.16.2-2ubuntu1 [22.7 kB] 844s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf desktop-file-utils armhf 0.28-1 [48.5 kB] 844s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf gir1.2-glib-2.0-dev armhf 2.84.1-1 [862 kB] 844s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf native-architecture all 0.2.6 [2140 B] 844s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf libgirepository-2.0-0 armhf 2.84.1-1 [99.2 kB] 844s Get:6 http://ftpmaster.internal/ubuntu plucky/main armhf girepository-tools armhf 2.84.1-1 [109 kB] 844s Get:7 http://ftpmaster.internal/ubuntu plucky/universe armhf gnome-desktop-testing armhf 2021.1-4 [16.2 kB] 844s Get:8 http://ftpmaster.internal/ubuntu plucky/main armhf libfontenc1 armhf 1:1.1.8-1build1 [11.5 kB] 844s Get:9 http://ftpmaster.internal/ubuntu plucky/main armhf libfreetype6 armhf 2.13.3+dfsg-1 [330 kB] 844s Get:10 http://ftpmaster.internal/ubuntu plucky/main armhf libwayland-server0 armhf 1.23.1-3 [30.3 kB] 844s Get:11 http://ftpmaster.internal/ubuntu plucky/main armhf libllvm19 armhf 1:19.1.7-3ubuntu1 [27.8 MB] 845s Get:12 http://ftpmaster.internal/ubuntu plucky/main armhf libx11-xcb1 armhf 2:1.8.10-2 [7902 B] 845s Get:13 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-dri3-0 armhf 1.17.0-2 [7120 B] 845s Get:14 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-present0 armhf 1.17.0-2 [5940 B] 845s Get:15 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-randr0 armhf 1.17.0-2 [17.0 kB] 845s Get:16 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-sync1 armhf 1.17.0-2 [8732 B] 845s Get:17 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-xfixes0 armhf 1.17.0-2 [10.0 kB] 845s Get:18 http://ftpmaster.internal/ubuntu plucky/main armhf libxshmfence1 armhf 1.3-1build5 [4464 B] 845s Get:19 http://ftpmaster.internal/ubuntu plucky/main armhf mesa-libgallium armhf 25.0.3-1ubuntu2 [8260 kB] 845s Get:20 http://ftpmaster.internal/ubuntu plucky/main armhf libgbm1 armhf 25.0.3-1ubuntu2 [29.0 kB] 845s Get:21 http://ftpmaster.internal/ubuntu plucky/main armhf libgio-2.0-dev-bin armhf 2.84.1-1 [130 kB] 845s Get:22 http://ftpmaster.internal/ubuntu plucky/main armhf libvulkan1 armhf 1.4.304.0-1 [127 kB] 845s Get:23 http://ftpmaster.internal/ubuntu plucky/main armhf libgl1-mesa-dri armhf 25.0.3-1ubuntu2 [32.0 kB] 845s Get:24 http://ftpmaster.internal/ubuntu plucky/main armhf libglib2.0-bin armhf 2.84.1-1 [92.7 kB] 845s Get:25 http://ftpmaster.internal/ubuntu plucky/main armhf libglib2.0-dev-bin armhf 2.84.1-1 [18.1 kB] 845s Get:26 http://ftpmaster.internal/ubuntu plucky/universe armhf python3-dbusmock all 0.34.3-1 [92.4 kB] 845s Get:27 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata-legacy all 2025b-1ubuntu1.1 [99.2 kB] 845s Get:28 http://ftpmaster.internal/ubuntu plucky/universe armhf libglib2.0-tests armhf 2.84.1-1 [2358 kB] 846s Get:29 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-glx0 armhf 1.17.0-2 [22.6 kB] 846s Get:30 http://ftpmaster.internal/ubuntu plucky/main armhf libxcb-shm0 armhf 1.17.0-2 [5774 B] 846s Get:31 http://ftpmaster.internal/ubuntu plucky/main armhf libxxf86vm1 armhf 1:1.1.4-1build4 [8068 B] 846s Get:32 http://ftpmaster.internal/ubuntu plucky/main armhf libglx-mesa0 armhf 25.0.3-1ubuntu2 [120 kB] 846s Get:33 http://ftpmaster.internal/ubuntu plucky/main armhf x11-common all 1:7.7+23ubuntu4 [21.8 kB] 846s Get:34 http://ftpmaster.internal/ubuntu plucky/main armhf libice6 armhf 2:1.1.1-1 [36.5 kB] 846s Get:35 http://ftpmaster.internal/ubuntu plucky/main armhf libpixman-1-0 armhf 0.44.0-3 [183 kB] 846s Get:36 http://ftpmaster.internal/ubuntu plucky/main armhf libsm6 armhf 2:1.2.4-1 [15.1 kB] 846s Get:37 http://ftpmaster.internal/ubuntu plucky/main armhf libxt6t64 armhf 1:1.2.1-1.2build1 [145 kB] 846s Get:38 http://ftpmaster.internal/ubuntu plucky/main armhf libxmu6 armhf 2:1.1.3-3build2 [40.4 kB] 846s Get:39 http://ftpmaster.internal/ubuntu plucky/main armhf libxpm4 armhf 1:3.5.17-1build2 [30.1 kB] 846s Get:40 http://ftpmaster.internal/ubuntu plucky/main armhf libxaw7 armhf 2:1.0.16-1 [154 kB] 846s Get:41 http://ftpmaster.internal/ubuntu plucky/main armhf libxfont2 armhf 1:2.0.6-1build1 [80.3 kB] 846s Get:42 http://ftpmaster.internal/ubuntu plucky/main armhf libxkbfile1 armhf 1:1.1.0-1build4 [60.0 kB] 846s Get:43 http://ftpmaster.internal/ubuntu plucky/main armhf libxrender1 armhf 1:0.9.10-1.1build1 [16.0 kB] 846s Get:44 http://ftpmaster.internal/ubuntu plucky/main armhf libxrandr2 armhf 2:1.5.4-1 [15.8 kB] 846s Get:45 http://ftpmaster.internal/ubuntu plucky/main armhf x11-xkb-utils armhf 7.7+9 [159 kB] 846s Get:46 http://ftpmaster.internal/ubuntu plucky/main armhf xserver-common all 2:21.1.16-1ubuntu1 [34.4 kB] 846s Get:47 http://ftpmaster.internal/ubuntu plucky/main armhf libglvnd0 armhf 1.7.0-1build1 [83.7 kB] 846s Get:48 http://ftpmaster.internal/ubuntu plucky/main armhf libglx0 armhf 1.7.0-1build1 [39.3 kB] 846s Get:49 http://ftpmaster.internal/ubuntu plucky/main armhf libgl1 armhf 1.7.0-1build1 [105 kB] 846s Get:50 http://ftpmaster.internal/ubuntu plucky/universe armhf xvfb armhf 2:21.1.16-1ubuntu1 [732 kB] 846s Fetched 42.7 MB in 2s (19.7 MB/s) 846s Selecting previously unselected package dbus-x11. 846s (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 ... 63953 files and directories currently installed.) 846s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu1_armhf.deb ... 846s Unpacking dbus-x11 (1.16.2-2ubuntu1) ... 846s Selecting previously unselected package desktop-file-utils. 846s Preparing to unpack .../01-desktop-file-utils_0.28-1_armhf.deb ... 846s Unpacking desktop-file-utils (0.28-1) ... 846s Selecting previously unselected package gir1.2-glib-2.0-dev:armhf. 846s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.84.1-1_armhf.deb ... 846s Unpacking gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 846s Selecting previously unselected package native-architecture. 846s Preparing to unpack .../03-native-architecture_0.2.6_all.deb ... 846s Unpacking native-architecture (0.2.6) ... 846s Selecting previously unselected package libgirepository-2.0-0:armhf. 846s Preparing to unpack .../04-libgirepository-2.0-0_2.84.1-1_armhf.deb ... 846s Unpacking libgirepository-2.0-0:armhf (2.84.1-1) ... 846s Selecting previously unselected package girepository-tools:armhf. 846s Preparing to unpack .../05-girepository-tools_2.84.1-1_armhf.deb ... 846s Unpacking girepository-tools:armhf (2.84.1-1) ... 847s Selecting previously unselected package gnome-desktop-testing. 847s Preparing to unpack .../06-gnome-desktop-testing_2021.1-4_armhf.deb ... 847s Unpacking gnome-desktop-testing (2021.1-4) ... 847s Selecting previously unselected package libfontenc1:armhf. 847s Preparing to unpack .../07-libfontenc1_1%3a1.1.8-1build1_armhf.deb ... 847s Unpacking libfontenc1:armhf (1:1.1.8-1build1) ... 847s Selecting previously unselected package libfreetype6:armhf. 847s Preparing to unpack .../08-libfreetype6_2.13.3+dfsg-1_armhf.deb ... 847s Unpacking libfreetype6:armhf (2.13.3+dfsg-1) ... 847s Selecting previously unselected package libwayland-server0:armhf. 847s Preparing to unpack .../09-libwayland-server0_1.23.1-3_armhf.deb ... 847s Unpacking libwayland-server0:armhf (1.23.1-3) ... 847s Selecting previously unselected package libllvm19:armhf. 847s Preparing to unpack .../10-libllvm19_1%3a19.1.7-3ubuntu1_armhf.deb ... 847s Unpacking libllvm19:armhf (1:19.1.7-3ubuntu1) ... 847s Selecting previously unselected package libx11-xcb1:armhf. 847s Preparing to unpack .../11-libx11-xcb1_2%3a1.8.10-2_armhf.deb ... 847s Unpacking libx11-xcb1:armhf (2:1.8.10-2) ... 847s Selecting previously unselected package libxcb-dri3-0:armhf. 848s Preparing to unpack .../12-libxcb-dri3-0_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-dri3-0:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxcb-present0:armhf. 848s Preparing to unpack .../13-libxcb-present0_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-present0:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxcb-randr0:armhf. 848s Preparing to unpack .../14-libxcb-randr0_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-randr0:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxcb-sync1:armhf. 848s Preparing to unpack .../15-libxcb-sync1_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-sync1:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxcb-xfixes0:armhf. 848s Preparing to unpack .../16-libxcb-xfixes0_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-xfixes0:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxshmfence1:armhf. 848s Preparing to unpack .../17-libxshmfence1_1.3-1build5_armhf.deb ... 848s Unpacking libxshmfence1:armhf (1.3-1build5) ... 848s Selecting previously unselected package mesa-libgallium:armhf. 848s Preparing to unpack .../18-mesa-libgallium_25.0.3-1ubuntu2_armhf.deb ... 848s Unpacking mesa-libgallium:armhf (25.0.3-1ubuntu2) ... 848s Selecting previously unselected package libgbm1:armhf. 848s Preparing to unpack .../19-libgbm1_25.0.3-1ubuntu2_armhf.deb ... 848s Unpacking libgbm1:armhf (25.0.3-1ubuntu2) ... 848s Selecting previously unselected package libgio-2.0-dev-bin. 848s Preparing to unpack .../20-libgio-2.0-dev-bin_2.84.1-1_armhf.deb ... 848s Unpacking libgio-2.0-dev-bin (2.84.1-1) ... 848s Selecting previously unselected package libvulkan1:armhf. 848s Preparing to unpack .../21-libvulkan1_1.4.304.0-1_armhf.deb ... 848s Unpacking libvulkan1:armhf (1.4.304.0-1) ... 848s Selecting previously unselected package libgl1-mesa-dri:armhf. 848s Preparing to unpack .../22-libgl1-mesa-dri_25.0.3-1ubuntu2_armhf.deb ... 848s Unpacking libgl1-mesa-dri:armhf (25.0.3-1ubuntu2) ... 848s Selecting previously unselected package libglib2.0-bin. 848s Preparing to unpack .../23-libglib2.0-bin_2.84.1-1_armhf.deb ... 848s Unpacking libglib2.0-bin (2.84.1-1) ... 848s Selecting previously unselected package libglib2.0-dev-bin. 848s Preparing to unpack .../24-libglib2.0-dev-bin_2.84.1-1_armhf.deb ... 848s Unpacking libglib2.0-dev-bin (2.84.1-1) ... 848s Selecting previously unselected package python3-dbusmock. 848s Preparing to unpack .../25-python3-dbusmock_0.34.3-1_all.deb ... 848s Unpacking python3-dbusmock (0.34.3-1) ... 848s Selecting previously unselected package tzdata-legacy. 848s Preparing to unpack .../26-tzdata-legacy_2025b-1ubuntu1.1_all.deb ... 848s Unpacking tzdata-legacy (2025b-1ubuntu1.1) ... 848s Selecting previously unselected package libglib2.0-tests. 848s Preparing to unpack .../27-libglib2.0-tests_2.84.1-1_armhf.deb ... 848s Unpacking libglib2.0-tests (2.84.1-1) ... 848s Selecting previously unselected package libxcb-glx0:armhf. 848s Preparing to unpack .../28-libxcb-glx0_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-glx0:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxcb-shm0:armhf. 848s Preparing to unpack .../29-libxcb-shm0_1.17.0-2_armhf.deb ... 848s Unpacking libxcb-shm0:armhf (1.17.0-2) ... 848s Selecting previously unselected package libxxf86vm1:armhf. 848s Preparing to unpack .../30-libxxf86vm1_1%3a1.1.4-1build4_armhf.deb ... 848s Unpacking libxxf86vm1:armhf (1:1.1.4-1build4) ... 848s Selecting previously unselected package libglx-mesa0:armhf. 848s Preparing to unpack .../31-libglx-mesa0_25.0.3-1ubuntu2_armhf.deb ... 848s Unpacking libglx-mesa0:armhf (25.0.3-1ubuntu2) ... 848s Selecting previously unselected package x11-common. 849s Preparing to unpack .../32-x11-common_1%3a7.7+23ubuntu4_all.deb ... 849s Unpacking x11-common (1:7.7+23ubuntu4) ... 849s Selecting previously unselected package libice6:armhf. 849s Preparing to unpack .../33-libice6_2%3a1.1.1-1_armhf.deb ... 849s Unpacking libice6:armhf (2:1.1.1-1) ... 849s Selecting previously unselected package libpixman-1-0:armhf. 849s Preparing to unpack .../34-libpixman-1-0_0.44.0-3_armhf.deb ... 849s Unpacking libpixman-1-0:armhf (0.44.0-3) ... 849s Selecting previously unselected package libsm6:armhf. 849s Preparing to unpack .../35-libsm6_2%3a1.2.4-1_armhf.deb ... 849s Unpacking libsm6:armhf (2:1.2.4-1) ... 849s Selecting previously unselected package libxt6t64:armhf. 849s Preparing to unpack .../36-libxt6t64_1%3a1.2.1-1.2build1_armhf.deb ... 849s Unpacking libxt6t64:armhf (1:1.2.1-1.2build1) ... 849s Selecting previously unselected package libxmu6:armhf. 849s Preparing to unpack .../37-libxmu6_2%3a1.1.3-3build2_armhf.deb ... 849s Unpacking libxmu6:armhf (2:1.1.3-3build2) ... 849s Selecting previously unselected package libxpm4:armhf. 849s Preparing to unpack .../38-libxpm4_1%3a3.5.17-1build2_armhf.deb ... 849s Unpacking libxpm4:armhf (1:3.5.17-1build2) ... 849s Selecting previously unselected package libxaw7:armhf. 849s Preparing to unpack .../39-libxaw7_2%3a1.0.16-1_armhf.deb ... 849s Unpacking libxaw7:armhf (2:1.0.16-1) ... 849s Selecting previously unselected package libxfont2:armhf. 849s Preparing to unpack .../40-libxfont2_1%3a2.0.6-1build1_armhf.deb ... 849s Unpacking libxfont2:armhf (1:2.0.6-1build1) ... 849s Selecting previously unselected package libxkbfile1:armhf. 849s Preparing to unpack .../41-libxkbfile1_1%3a1.1.0-1build4_armhf.deb ... 849s Unpacking libxkbfile1:armhf (1:1.1.0-1build4) ... 849s Selecting previously unselected package libxrender1:armhf. 849s Preparing to unpack .../42-libxrender1_1%3a0.9.10-1.1build1_armhf.deb ... 849s Unpacking libxrender1:armhf (1:0.9.10-1.1build1) ... 849s Selecting previously unselected package libxrandr2:armhf. 849s Preparing to unpack .../43-libxrandr2_2%3a1.5.4-1_armhf.deb ... 849s Unpacking libxrandr2:armhf (2:1.5.4-1) ... 849s Selecting previously unselected package x11-xkb-utils. 849s Preparing to unpack .../44-x11-xkb-utils_7.7+9_armhf.deb ... 849s Unpacking x11-xkb-utils (7.7+9) ... 849s Selecting previously unselected package xserver-common. 849s Preparing to unpack .../45-xserver-common_2%3a21.1.16-1ubuntu1_all.deb ... 849s Unpacking xserver-common (2:21.1.16-1ubuntu1) ... 849s Selecting previously unselected package libglvnd0:armhf. 849s Preparing to unpack .../46-libglvnd0_1.7.0-1build1_armhf.deb ... 849s Unpacking libglvnd0:armhf (1.7.0-1build1) ... 849s Selecting previously unselected package libglx0:armhf. 849s Preparing to unpack .../47-libglx0_1.7.0-1build1_armhf.deb ... 849s Unpacking libglx0:armhf (1.7.0-1build1) ... 849s Selecting previously unselected package libgl1:armhf. 849s Preparing to unpack .../48-libgl1_1.7.0-1build1_armhf.deb ... 849s Unpacking libgl1:armhf (1.7.0-1build1) ... 849s Selecting previously unselected package xvfb. 849s Preparing to unpack .../49-xvfb_2%3a21.1.16-1ubuntu1_armhf.deb ... 849s Unpacking xvfb (2:21.1.16-1ubuntu1) ... 849s Setting up gnome-desktop-testing (2021.1-4) ... 849s Setting up libxcb-dri3-0:armhf (1.17.0-2) ... 849s Setting up libpixman-1-0:armhf (0.44.0-3) ... 849s Setting up libllvm19:armhf (1:19.1.7-3ubuntu1) ... 849s Setting up libwayland-server0:armhf (1.23.1-3) ... 849s Setting up libx11-xcb1:armhf (2:1.8.10-2) ... 849s Setting up libgio-2.0-dev-bin (2.84.1-1) ... 849s Setting up native-architecture (0.2.6) ... 849s Setting up libxcb-xfixes0:armhf (1.17.0-2) ... 849s Setting up desktop-file-utils (0.28-1) ... 849s Setting up libxpm4:armhf (1:3.5.17-1build2) ... 849s Setting up libxrender1:armhf (1:0.9.10-1.1build1) ... 849s Setting up libgirepository-2.0-0:armhf (2.84.1-1) ... 849s Setting up libglvnd0:armhf (1.7.0-1build1) ... 849s Setting up libxcb-glx0:armhf (1.17.0-2) ... 849s Setting up x11-common (1:7.7+23ubuntu4) ... 850s Setting up libglib2.0-bin (2.84.1-1) ... 850s Setting up libxcb-shm0:armhf (1.17.0-2) ... 850s Setting up python3-dbusmock (0.34.3-1) ... 850s Setting up tzdata-legacy (2025b-1ubuntu1.1) ... 850s Setting up libxxf86vm1:armhf (1:1.1.4-1build4) ... 850s Setting up libxcb-present0:armhf (1.17.0-2) ... 850s Setting up libfontenc1:armhf (1:1.1.8-1build1) ... 850s Setting up libfreetype6:armhf (2.13.3+dfsg-1) ... 850s Setting up libxcb-sync1:armhf (1.17.0-2) ... 850s Setting up libxrandr2:armhf (2:1.5.4-1) ... 850s Setting up libvulkan1:armhf (1.4.304.0-1) ... 850s Setting up gir1.2-glib-2.0-dev:armhf (2.84.1-1) ... 850s Setting up libxshmfence1:armhf (1.3-1build5) ... 850s Setting up dbus-x11 (1.16.2-2ubuntu1) ... 850s Setting up libxcb-randr0:armhf (1.17.0-2) ... 850s Setting up libxkbfile1:armhf (1:1.1.0-1build4) ... 850s Setting up libxfont2:armhf (1:2.0.6-1build1) ... 850s Setting up libice6:armhf (2:1.1.1-1) ... 850s Setting up mesa-libgallium:armhf (25.0.3-1ubuntu2) ... 850s Setting up girepository-tools:armhf (2.84.1-1) ... 850s Setting up libgbm1:armhf (25.0.3-1ubuntu2) ... 850s Setting up libgl1-mesa-dri:armhf (25.0.3-1ubuntu2) ... 850s Setting up libsm6:armhf (2:1.2.4-1) ... 850s Setting up libglib2.0-dev-bin (2.84.1-1) ... 850s Setting up libglx-mesa0:armhf (25.0.3-1ubuntu2) ... 850s Setting up libglx0:armhf (1.7.0-1build1) ... 850s Setting up libgl1:armhf (1.7.0-1build1) ... 850s Setting up libxt6t64:armhf (1:1.2.1-1.2build1) ... 850s Setting up libglib2.0-tests (2.84.1-1) ... 850s Setting up libxmu6:armhf (2:1.1.3-3build2) ... 850s Setting up libxaw7:armhf (2:1.0.16-1) ... 850s Setting up x11-xkb-utils (7.7+9) ... 850s Setting up xserver-common (2:21.1.16-1ubuntu1) ... 850s Setting up xvfb (2:21.1.16-1ubuntu1) ... 850s Processing triggers for man-db (2.13.0-1) ... 851s Processing triggers for libc-bin (2.41-6ubuntu1) ... 865s autopkgtest [18:51:12]: test installed-tests: [----------------------- 867s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),102(lxd) 867s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 867s group entry: ubuntu:x:1000: 867s Environment: 867s ADTTMP=/tmp/autopkgtest.6YAuRe/autopkgtest_tmp 867s ADT_ARTIFACTS=/tmp/autopkgtest.6YAuRe/installed-tests-artifacts 867s ADT_TEST_TRIGGERS=tzdata/2025b-1ubuntu1.1 867s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.6YAuRe/installed-tests-artifacts 867s AUTOPKGTEST_TESTBED_ARCH=armhf 867s AUTOPKGTEST_TEST_ARCH=armhf 867s AUTOPKGTEST_TMP=/tmp/autopkgtest.6YAuRe/autopkgtest_tmp 867s DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus 867s DEBIAN_FRONTEND=noninteractive 867s DEB_BUILD_OPTIONS=parallel=8 867s GIO_USE_VFS=local 867s GIO_USE_VOLUME_MONITOR=unix 867s HOME=/home/ubuntu 867s LANG=C.UTF-8 867s LOGNAME=ubuntu 867s MAIL=/var/mail/ubuntu 867s OLDPWD=/root 867s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 867s PWD=/tmp/autopkgtest.6YAuRe/build.Fcb/src 867s SHELL=/bin/bash 867s SHLVL=1 867s USER=ubuntu 867s XDG_RUNTIME_DIR=/tmp/autopkgtest.6YAuRe/autopkgtest_tmp 867s XDG_SESSION_CLASS=background 867s XDG_SESSION_ID=c1 867s XDG_SESSION_TYPE=unspecified 867s http_proxy=http://squid.internal:3128 867s https_proxy=http://squid.internal:3128 867s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com 867s run-with-locales: de_DE=ISO-8859-1... 867s Character set: ISO-8859-1 867s Source file: de_DE 867s Output: /tmp/tmp.ozeEGGPN9L/de_DE 868s run-with-locales: de_DE.utf8... 868s Character set: UTF-8 868s Source file: de_DE 868s Output: /tmp/tmp.ozeEGGPN9L/de_DE.utf8 869s run-with-locales: de_DE@euro.utf8... 869s Character set: UTF-8 869s Source file: de_DE@euro 869s Output: /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8 871s run-with-locales: el_GR.utf8... 871s Character set: UTF-8 871s Source file: el_GR 871s Output: /tmp/tmp.ozeEGGPN9L/el_GR.utf8 873s run-with-locales: en_GB=ISO-8859-1... 873s Character set: ISO-8859-1 873s Source file: en_GB 873s Output: /tmp/tmp.ozeEGGPN9L/en_GB 873s run-with-locales: en_GB.utf8... 873s Character set: UTF-8 873s Source file: en_GB 873s Output: /tmp/tmp.ozeEGGPN9L/en_GB.utf8 875s run-with-locales: en_US=ISO-8859-1... 875s Character set: ISO-8859-1 875s Source file: en_US 875s Output: /tmp/tmp.ozeEGGPN9L/en_US 875s run-with-locales: en_US.utf8... 875s Character set: UTF-8 875s Source file: en_US 875s Output: /tmp/tmp.ozeEGGPN9L/en_US.utf8 877s run-with-locales: es_ES.utf8... 877s Character set: UTF-8 877s Source file: es_ES 877s Output: /tmp/tmp.ozeEGGPN9L/es_ES.utf8 879s run-with-locales: fa_IR=UTF-8... 879s Character set: UTF-8 879s Source file: fa_IR 879s Output: /tmp/tmp.ozeEGGPN9L/fa_IR 880s run-with-locales: fa_IR.utf8... 880s Character set: UTF-8 880s Source file: fa_IR 880s Output: /tmp/tmp.ozeEGGPN9L/fa_IR.utf8 882s run-with-locales: fr_FR.utf8... 882s Character set: UTF-8 882s Source file: fr_FR 882s Output: /tmp/tmp.ozeEGGPN9L/fr_FR.utf8 884s run-with-locales: hr_HR.utf8... 884s Character set: UTF-8 884s Source file: hr_HR 884s Output: /tmp/tmp.ozeEGGPN9L/hr_HR.utf8 886s run-with-locales: ja_JP.utf8... 886s Character set: UTF-8 886s Source file: ja_JP 886s Output: /tmp/tmp.ozeEGGPN9L/ja_JP.utf8 887s run-with-locales: ja_JP.EUC-JP... 887s Character set: EUC-JP 887s Source file: ja_JP 887s Output: /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp 887s run-with-locales: lt_LT.utf8... 887s Character set: UTF-8 887s Source file: lt_LT 887s Output: /tmp/tmp.ozeEGGPN9L/lt_LT.utf8 889s run-with-locales: pl_PL=ISO-8859-2... 889s Character set: ISO-8859-2 889s Source file: pl_PL 889s Output: /tmp/tmp.ozeEGGPN9L/pl_PL 890s run-with-locales: pl_PL.ISO-8859-2... 890s Character set: ISO-8859-2 890s Source file: pl_PL 890s Output: /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592 890s run-with-locales: pl_PL.utf8... 891s Character set: UTF-8 891s Source file: pl_PL 891s Output: /tmp/tmp.ozeEGGPN9L/pl_PL.utf8 893s run-with-locales: ru_RU=ISO-8859-5... 893s Character set: ISO-8859-5 893s Source file: ru_RU 893s Output: /tmp/tmp.ozeEGGPN9L/ru_RU 893s run-with-locales: ru_RU.utf8... 893s Character set: UTF-8 893s Source file: ru_RU 893s Output: /tmp/tmp.ozeEGGPN9L/ru_RU.utf8 895s run-with-locales: sr_RS=UTF-8... 895s Character set: UTF-8 895s Source file: sr_RS 895s Output: /tmp/tmp.ozeEGGPN9L/sr_RS 897s run-with-locales: sr_RS@latin=UTF-8... 897s Character set: UTF-8 897s Source file: sr_RS@latin 897s Output: /tmp/tmp.ozeEGGPN9L/sr_RS@latin 899s run-with-locales: sv_SE=ISO-8859-1... 899s Character set: ISO-8859-1 899s Source file: sv_SE 899s Output: /tmp/tmp.ozeEGGPN9L/sv_SE 899s run-with-locales: sv_SE.utf8... 899s Character set: UTF-8 899s Source file: sv_SE 899s Output: /tmp/tmp.ozeEGGPN9L/sv_SE.utf8 901s run-with-locales: tr_TR=ISO-8859-9... 901s Character set: ISO-8859-9 901s Source file: tr_TR 901s Output: /tmp/tmp.ozeEGGPN9L/tr_TR 901s run-with-locales: tr_TR.utf8... 901s Character set: UTF-8 901s Source file: tr_TR 901s Output: /tmp/tmp.ozeEGGPN9L/tr_TR.utf8 903s run-with-locales: tt_RU=UTF-8... 903s Character set: UTF-8 903s Source file: tt_RU 903s Output: /tmp/tmp.ozeEGGPN9L/tt_RU 905s run-with-locales: tt_RU.utf8... 905s Character set: UTF-8 905s Source file: tt_RU 905s Output: /tmp/tmp.ozeEGGPN9L/tt_RU.utf8 906s run-with-locales: tt_RU@iqtelif=UTF-8... 906s Character set: UTF-8 906s Source file: tt_RU@iqtelif 906s Output: /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif 908s /tmp/tmp.ozeEGGPN9L 908s /tmp/tmp.ozeEGGPN9L/de_DE 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/de_DE/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/de_DE.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/de_DE@euro.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/el_GR.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/en_GB 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/en_GB/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/en_GB.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/en_US 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/en_US/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/en_US.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/es_ES.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/fa_IR 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/fa_IR/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/fa_IR.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/fr_FR.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/hr_HR.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/ja_JP.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/ja_JP.eucjp/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/lt_LT.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/pl_PL 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/pl_PL/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/pl_PL.iso88592/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/pl_PL.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/ru_RU 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/ru_RU/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/ru_RU.utf8/LC_MEASUREMENT 908s /tmp1..323 908s # Running test: glib/struct-info.test 908s ok - glib/struct-info.test 908s # Running test: glib/macros-c-89.test 908s ok - glib/macros-c-89.test 908s # Running test: glib/performance.test 908s /tmp.ozeEGGPN9L/ru_RU.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/sr_RS 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/sr_RS/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/sr_RS@latin/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/sv_SE 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/sv_SE/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/sv_SE.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/tr_TR 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/tr_TR/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/tr_TR.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/tt_RU 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/tt_RU/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/tt_RU.utf8/LC_IDENTIFICATION 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_CTYPE 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_NUMERIC 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_TIME 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_COLLATE 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_MONETARY 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_PAPER 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_NAME 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_ADDRESS 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_TELEPHONE 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_MEASUREMENT 908s /tmp/tmp.ozeEGGPN9L/tt_RU@iqtelif/LC_IDENTIFICATION 908s TAP version 14 908s # random seed: R02Sfccfca36f10a383a982019ff818f76cd 908s 1..4 908s # Start of struct-info tests 908s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/home 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/cache 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/system-config2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/config 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/system-data2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/data 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/state 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_NEET52/struct-info/field-iterators/.dirs/runtime 908s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 908s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 908s ok 1 /struct-info/field-iterators 908s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/home 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/cache 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/system-config2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/config 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/system-data2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/data 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/state 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_NEET52/struct-info/sizeof-gvalue/.dirs/runtime 908s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 908s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 908s ok 2 /struct-info/sizeof-gvalue 908s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/home 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/config 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/data 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/state 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_NEET52/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 908s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 908s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 908s ok 3 /struct-info/is-pointer-for-struct-method-arg 908s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/home 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/cache 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/system-config2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/config 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/system-data2 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/data 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/state 908s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_NEET52/struct-info/boxed/.dirs/runtime 908s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 908s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 908s ok 4 /struct-info/boxed 908s # End of struct-info tests 908s TAP version 14 908s # random seed: R02S8d03ab0e71356ee886a5d8d3261bc3d9 908s 1..4 908s # Start of C tests 908s ok 1 /C/standard-89 908s # End of C tests 908s # Start of alignof tests 908s ok 2 /alignof/fallback 908s # End of alignof tests 908s # Start of assert tests 908s ok 3 /assert/static 908s # End of assert tests 908s # Start of struct tests 908s ok 4 /struct/sizeof_member 908s # End of struct tests 913s # Executing: glib/performance.test 918s simple-construction: Millions of constructed objects per second: 12.702 918s # Executing: glib/performance.test 921s simple-construction1: Millions of constructed objects per second: 71.128 923s # Executing: glib/performance.test 925s complex-construction: Millions of constructed objects per second: 4.743 928s # Executing: glib/performance.test 932s complex-construction1: Millions of constructed objects per second: 8.016 933s # Executing: glib/performance.test 938s # Executing: glib/performance.test 939s complex-construction2: Millions of constructed objects per second: 9.148 940s finalization: Millions of finalized objects per second: 1.732 942s type-check: Million type checks per second: 40.11 943s emit-unhandled: Emissions per second: 2715663 943s # Executing: glib/performance.test 944s emit-unhandled-empty: Emissions per second: 24273586 945s emit-unhandled-generic: Emissions per second: 3666583 947s emit-unhandled-generic-empty: Emissions per second: 24420627 948s emit-unhandled-args: Emissions per second: 2409279 948s # Executing: glib/performance.test 949s emit-handled: Emissions per second: 1805468 950s emit-handled-empty: Emissions per second: 1850670 951s emit-handled-generic: Emissions per second: 1875424 953s emit-handled-generic-empty: Emissions per second: 3016830 953s # Executing: glib/performance.test 954s emit-handled-args: Emissions per second: 1651469 955s notify-unhandled: Notify (unhandled) per second: 10290339 957s notify-by-pspec-unhandled: Notify (unhandled) per second: 74877546 958s notify-handled: Notify per second: 1080468 958s # Executing: glib/performance.test 959s notify-by-pspec-handled: Notify per second: 1189064 960s property-set: Property set per second: 10533595 962s property-set-signaled: Property set per second: 1973166 963s property-get: Property get per second: 10622774 963s # Executing: glib/performance.test 964s refcount: Million refs+unref per second: 17.04 965s refcount-1: Million refs+unref per second: 41.63 967s refcount-toggle: Million refs+unref per second: 25.05 967s ok - glib/performance.test 967s # Running test: glib/unicode.test 967s TAP version 14 967s # random seed: R02Scb5aecf3a6d70ca24be93e138425de45 967s 1..39 967s # Start of unicode tests 967s ok 1 /unicode/alnum 967s ok 2 /unicode/alpha 967s ok 3 /unicode/break-type 967s ok 4 /unicode/canonical-decomposition 967s ok 5 /unicode/casefold 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s # Cannot set locale to lt_LT, skipping 967s ok 6 /unicode/casemap_and_casefold 967s ok 7 /unicode/cases 967s ok 8 /unicode/character-type 967s ok 9 /unicode/cntrl 967s ok 10 /unicode/combining-class 967s # Composing U+000041 and U+000042; expecting U+000000 967s # Composing U+000041 and U+000000; expecting U+000000 967s # Composing U+000066 and U+000069; expecting U+000000 967s # Composing U+000308 and U+000301; expecting U+000000 967s # Composing U+000f71 and U+000f72; expecting U+000000 967s # Composing U+00212b and U+000000; expecting U+000000 967s # Composing U+0000c5 and U+000000; expecting U+000000 967s # Composing U+002126 and U+000000; expecting U+000000 967s # Composing U+0003a9 and U+000000; expecting U+000000 967s ok - glib/unicode.test 967s # Running test: glib/sleepy-stream.test 967s ok - glib/sleepy-stream.test 967s # Running test: glib/scannerapi.test 967s # Composing U+000041 and U+00030a; expecting U+0000c5 967s # Composing U+00006f and U+000302; expecting U+0000f4 967s # Composing U+001e63 and U+000307; expecting U+001e69 967s # Composing U+000073 and U+000323; expecting U+001e63 967s # Composing U+000064 and U+000307; expecting U+001e0b 967s # Composing U+000064 and U+000323; expecting U+001e0d 967s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 967s # Composing U+001111 and U+001171; expecting U+00d4cc 967s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 967s # Composing U+00110e and U+001173; expecting U+00ce20 967s # Composing U+001100 and U+001160; expecting U+000000 967s # Composing U+001100 and U+001177; expecting U+000000 967s # Composing U+00abff and U+0011b6; expecting U+000000 967s # Composing U+00d7a5 and U+0011b6; expecting U+000000 967s # Composing U+00ac01 and U+0011b6; expecting U+000000 967s # Composing U+00d4cc and U+0011a6; expecting U+000000 967s # Composing U+00d4cc and U+0011c4; expecting U+000000 967s # Composing U+01611e and U+01611e; expecting U+016121 967s # Composing U+01611e and U+01611f; expecting U+016123 967s # Composing U+0000f6 and U+000304; expecting U+00022b 967s # Composing U+000b47 and U+000b57; expecting U+000b4c 967s # Composing U+0000a0 and U+000b57; expecting U+000000 967s # Composing U+016e00 and U+00030a; expecting U+000000 967s # Composing U+00212b and U+016e00; expecting U+000000 967s # Composing U+001e63 and U+000306; expecting U+000000 967s # Composing U+001e63 and U+000304; expecting U+000000 967s # Composing U+001e63 and U+000b57; expecting U+000000 967s # Composing U+001e63 and U+000000; expecting U+000000 967s # Composing U+001e63 and U+0113c2; expecting U+000000 967s # Composing U+001f01 and U+0113c2; expecting U+000000 967s # Composing U+00006e and U+000302; expecting U+000000 967s # Composing U+001e63 and U+01611f; expecting U+000000 967s # Composing U+01138e and U+0113b8; expecting U+000000 967s # Composing U+01611e and U+000000; expecting U+000000 967s # Composing U+000000 and U+01611f; expecting U+000000 967s # Composing U+011390 and U+0113c2; expecting U+000000 967s ok 11 /unicode/compose 967s ok 12 /unicode/decompose 967s ok - glib/scannerapi.test 967s # Running test: glib/gdbus-auth.test 967s ok 13 /unicode/decompose-tail 967s ok 14 /unicode/defined 967s ok 15 /unicode/digit 967s ok 16 /unicode/digit-value 967s # Fully decomposing U+000041; expecting 1 codepoints 967s # Fully decomposing U+00fb01; expecting 1 codepoints 967s # Fully decomposing U+00212b; expecting 2 codepoints 967s # Fully decomposing U+002126; expecting 1 codepoints 967s # Fully decomposing U+000344; expecting 2 codepoints 967s # Fully decomposing U+000f73; expecting 2 codepoints 967s # Fully decomposing U+0000c5; expecting 2 codepoints 967s # Fully decomposing U+0000f4; expecting 2 codepoints 967s # Fully decomposing U+001e69; expecting 3 codepoints 967s # Fully decomposing U+001e63; expecting 2 codepoints 967s # Fully decomposing U+001e0b; expecting 2 codepoints 967s # Fully decomposing U+001e0d; expecting 2 codepoints 967s # Fully decomposing U+00d4db; expecting 3 codepoints 967s # Fully decomposing U+00d4cc; expecting 2 codepoints 967s # Fully decomposing U+00ce31; expecting 3 codepoints 967s # Fully decomposing U+00ce20; expecting 2 codepoints 967s ok 17 /unicode/fully-decompose-canonical 967s ok 18 /unicode/fully-decompose-len 967s ok 19 /unicode/normalization 967s ok 20 /unicode/graph 967s # Testing script Zyyy (code 1517910393) 967s # Testing script Zinh (code 1516858984) 967s # Testing script Zmth (code 1517122664) 967s # Testing script Arab (code 1098015074) 967s # Testing script Armn (code 1098018158) 967s # Testing script Beng (code 1113943655) 967s # Testing script Bopo (code 1114599535) 967s # Testing script Cher (code 1130915186) 967s # Testing script Copt (code 1131376756) 967s # Testing script Cyrl (code 1132032620) 967s # Testing script Dsrt (code 1148416628) 967s # Testing script Deva (code 1147500129) 967s # Testing script Ethi (code 1165256809) 967s # Testing script Geor (code 1197830002) 967s # Testing script Goth (code 1198486632) 967s # Testing script Grek (code 1198679403) 967s # Testing script Gujr (code 1198877298) 967s # Testing script Guru (code 1198879349) 967s # Testing script Hani (code 1214344809) 967s # Testing script Hang (code 1214344807) 967s # Testing script Hebr (code 1214603890) 967s # Testing script Hira (code 1214870113) 967s # Testing script Knda (code 1265525857) 967s # Testing script Kana (code 1264676449) 967s # Testing script Khmr (code 1265134962) 967s # Testing script Laoo (code 1281453935) 967s # Testing script Latn (code 1281455214) 967s # Testing script Mlym (code 1298954605) 967s # Testing script Mong (code 1299148391) 967s # Testing script Mymr (code 1299803506) 967s # Testing script Ogam (code 1332175213) 967s # Testing script Ital (code 1232363884) 967s # Testing script Orya (code 1332902241) 967s # Testing script Runr (code 1383427698) 967s # Testing script Sinh (code 1399418472) 967s # Testing script Syrc (code 1400468067) 967s # Testing script Taml (code 1415671148) 967s # Testing script Telu (code 1415933045) 967s # Testing script Thaa (code 1416126817) 967s # Testing script Thai (code 1416126825) 967s # Testing script Tibt (code 1416192628) 967s # Testing script Cans (code 1130458739) 967s # Testing script Yiii (code 1500080489) 967s # Testing script Tglg (code 1416064103) 967s # Testing script Hano (code 1214344815) 967s # Testing script Buhd (code 1114990692) 967s # Testing script Tagb (code 1415669602) 967s # Testing script Brai (code 1114792297) 967s # Testing script Cprt (code 1131442804) 967s # Testing script Limb (code 1281977698) 967s # Testing script Osma (code 1332964705) 967s # Testing script Shaw (code 1399349623) 967s # Testing script Linb (code 1281977954) 967s # Testing script Tale (code 1415670885) 967s # Testing script Ugar (code 1432838514) 967s # Testing script Talu (code 1415670901) 967s # Testing script Bugi (code 1114990441) 967s # Testing script Glag (code 1198285159) 967s # Testing script Tfng (code 1415999079) 967s # Testing script Sylo (code 1400466543) 967s # Testing script Xpeo (code 1483761007) 967s # Testing script Khar (code 1265131890) 967s # Testing script Zzzz (code 1517976186) 967s # Testing script Bali (code 1113681001) 967s # Testing script Xsux (code 1483961720) 967s # Testing script Phnx (code 1349021304) 967s # Testing script Phag (code 1349017959) 967s # Testing script Nkoo (code 1315663727) 967s # Testing script Kali (code 1264675945) 967s # Testing script Lepc (code 1281716323) 967s # Testing script Rjng (code 1382706791) 967s # Testing script Sund (code 1400204900) 967s # Testing script Saur (code 1398895986) 967s # Testing script Cham (code 1130914157) 967s # Testing script Olck (code 1332503403) 967s # Testing script Vaii (code 1449224553) 967s # Testing script Cari (code 1130459753) 967s # Testing script Lyci (code 1283023721) 967s # Testing script Lydi (code 1283023977) 967s # Testing script Avst (code 1098281844) 967s # Testing script Bamu (code 1113681269) 967s # Testing script Egyp (code 1164409200) 967s # Testing script Armi (code 1098018153) 967s # Testing script Phli (code 1349020777) 967s # Testing script Prti (code 1349678185) 967s # Testing script Java (code 1247901281) 967s # Testing script Kthi (code 1265920105) 967s # Testing script Lisu (code 1281979253) 967s # Testing script Mtei (code 1299473769) 967s # Testing script Sarb (code 1398895202) 967s # Testing script Orkh (code 1332898664) 967s # Testing script Samr (code 1398893938) 967s # Testing script Lana (code 1281453665) 967s # Testing script Tavt (code 1415673460) 967s # Testing script Batk (code 1113683051) 967s # Testing script Brah (code 1114792296) 967s # Testing script Mand (code 1298230884) 967s # Testing script Cakm (code 1130457965) 967s # Testing script Merc (code 1298494051) 967s # Testing script Mero (code 1298494063) 967s # Testing script Plrd (code 1349284452) 967s # Testing script Shrd (code 1399353956) 967s # Testing script Sora (code 1399812705) 967s # Testing script Takr (code 1415670642) 967s # Testing script Bass (code 1113682803) 967s # Testing script Aghb (code 1097295970) 967s # Testing script Dupl (code 1148547180) 967s # Testing script Elba (code 1164730977) 967s # Testing script Gran (code 1198678382) 967s # Testing script Khoj (code 1265135466) 967s # Testing script Sind (code 1399418468) 967s # Testing script Lina (code 1281977953) 967s # Testing script Mahj (code 1298229354) 967s # Testing script Mani (code 1298230889) 967s # Testing script Mend (code 1298493028) 967s # Testing script Modi (code 1299145833) 967s # Testing script Mroo (code 1299345263) 967s # Testing script Nbat (code 1315070324) 967s # Testing script Narb (code 1315009122) 967s # Testing script Perm (code 1348825709) 967s # Testing script Hmng (code 1215131239) 967s # Testing script Palm (code 1348562029) 967s # Testing script Pauc (code 1348564323) 967s # Testing script Phlp (code 1349020784) 967s # Testing script Sidd (code 1399415908) 967s # Testing script Tirh (code 1416196712) 967s # Testing script Wara (code 1466004065) 967s # Testing script Ahom (code 1097363309) 967s # Testing script Hluw (code 1215067511) 967s # Testing script Hatr (code 1214346354) 967s # Testing script Mult (code 1299541108) 967s # Testing script Hung (code 1215655527) 967s # Testing script Sgnw (code 1399287415) 967s # Testing script Adlm (code 1097100397) 967s # Testing script Bhks (code 1114139507) 967s # Testing script Marc (code 1298231907) 967s # Testing script Newa (code 1315272545) 967s # Testing script Osge (code 1332963173) 967s # Testing script Tang (code 1415671399) 967s # Testing script Gonm (code 1198485101) 967s # Testing script Nshu (code 1316186229) 967s # Testing script Soyo (code 1399814511) 967s # Testing script Zanb (code 1516334690) 967s # Testing script Dogr (code 1148151666) 967s # Testing script Gong (code 1198485095) 967s # Testing script Rohg (code 1383032935) 967s # Testing script Maka (code 1298230113) 967s # Testing script Medf (code 1298490470) 967s # Testing script Sogo (code 1399809903) 967s # Testing script Sogd (code 1399809892) 967s # Testing script Elym (code 1164736877) 967s # Testing script Nand (code 1315008100) 967s # Testing script Hmnp (code 1215131248) 967s # Testing script Wcho (code 1466132591) 967s # Testing script Chrs (code 1130918515) 967s # Testing script Diak (code 1147756907) 967s # Testing script Kits (code 1265202291) 967s # Testing script Yezi (code 1499822697) 967s # Testing script Cpmn (code 1131441518) 967s # Testing script Ougr (code 1333094258) 967s # Testing script Tnsa (code 1416524641) 967s # Testing script Toto (code 1416590447) 967s # Testing script Vith (code 1449751656) 967s # Testing script Kawi (code 1264678761) 967s # Testing script Nagm (code 1315006317) 967s # Testing script Todr (code 1416586354) 967s # Testing script Gara (code 1197568609) 967s # Testing script Tutg (code 1416983655) 967s # Testing script Sunu (code 1400204917) 967s # Testing script Gukh (code 1198877544) 967s # Testing script Krai (code 1265787241) 967s # Testing script Onao (code 1332633967) 967s ok 21 /unicode/iso15924 967s ok 22 /unicode/lower 967s ok 23 /unicode/mark 967s ok 24 /unicode/mirror 967s ok 25 /unicode/print 967s ok 26 /unicode/punctuation 967s ok 27 /unicode/script 967s ok 28 /unicode/space 967s ok 29 /unicode/strdown 967s ok 30 /unicode/strup 967s ok 31 /unicode/turkish-strupdown 967s ok 32 /unicode/title 967s ok 33 /unicode/upper 967s ok 34 /unicode/validate 967s ok 35 /unicode/wide 967s ok 36 /unicode/xdigit 967s ok 37 /unicode/xdigit-value 967s ok 38 /unicode/zero-width 967s ok 39 /unicode/normalize 967s # End of unicode tests 967s TAP version 14 967s # random seed: R02S11bc477792422b6f49380e573d45afe2 967s 1..2 967s # Start of filter-stream tests 967s ok 1 /filter-stream/input 967s ok 2 /filter-stream/async 967s # End of filter-stream tests 967s TAP version 14 967s # random seed: R02Se83bb20693f1f59caf49383de1f9a4e5 967s 1..4 967s # Start of scanner tests 967s ok 1 /scanner/warn 967s ok 2 /scanner/error 967s ok 3 /scanner/symbols 967s ok 4 /scanner/tokens 967s # End of scanner tests 967s TAP version 14 967s # random seed: R02Sd1d1d65cdbe1a478b607a7b658fdf1ad 967s 1..5 967s # Start of gdbus tests 967s # Start of auth tests 967s # Start of client tests 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/EXTERNAL/.dirs/runtime 967s ok 1 /gdbus/auth/client/EXTERNAL 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 967s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 967s # End of client tests 967s # Start of server tests 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/ANONYMOUS/.dirs/runtime 967s ok 3 /gdbus/auth/server/ANONYMOUS 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/EXTERNAL/.dirs/runtime 967s ok 4 /gdbus/auth/server/EXTERNAL 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_WQZ152/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 967s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 967s # End of server tests 967s # End of auth tests 967s # End of gdbus tests 967s ok - glib/gdbus-auth.test 967s # Running test: glib/gobject-query.py.test 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s TAP version 13 967s ok 1 __main__.TestGobjectQuery.test_froots 967s # gobject-query: /usr/bin/gobject-query 967s # tmpdir: /tmp/tmpp84ax30a 967s # Running: ['/usr/bin/gobject-query', 'froots'] 967s # Return code: 0 967s # Output: 967s # ├void 967s # ├GInterface 967s # │ â””GTypePlugin 967s # ├gchar 967s # ├guchar 967s # ├gboolean 967s # ├gint 967s # ├guint 967s # ├glong 967s # ├gulong 967s # ├gint64 967s # ├guint64 967s # ├GEnum 967s # ├GFlags 967s # ├gfloat 967s # ├gdouble 967s # ├gchararray 967s # ├gpointer 967s # │ â””GType 967s # ├GBoxed 967s # │ â””GValueArray 967s # ├GParam 967s # │ ├GParamChar 967s # │ ├GParamUChar 967s # │ ├GParamBoolean 967s # │ ├GParamInt 967s # │ ├GParamUInt 967s # │ ├GParamLong 967s # │ ├GParamULong 967s # │ ├GParamInt64 967s # │ ├GParamUInt64 967s # │ ├GParamUnichar 967s # │ ├GParamEnum 967s # │ ├GParamFlags 967s # │ ├GParamFloat 967s # │ ├GParamDouble 967s # │ ├GParamString 967s # │ ├GParamParam 967s # │ ├GParamBoxed 967s # │ ├GParamPointer 967s # │ ├GParamValueArray 967s # │ ├GParamObject 967s # │ ├GParamOverride 967s # │ ├GParamGType 967s # │ â””GParamVariant 967s # ├GObject 967s # â””GVariant 967s # Error: 967s ok 2 __main__.TestGobjectQuery.test_help 967s # gobject-query: /usr/bin/gobject-query 967s # tmpdir: /tmp/tmp9xxzfbtf 967s # Running: ['/usr/bin/gobject-query', '--help'] 967s # Return code: 0 967s # Output: 967s # usage: gobject-query [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 967s # -r specify root type 967s # -n don't descend type tree 967s # -h show help 967s # -b specify indent string 967s # -i specify incremental indent string 967s # -s specify line spacing 967s # qualifiers: 967s # froots iterate over fundamental roots 967s # tree print type tree 967s # Error: 967s ok 3 __main__.TestGobjectQuery.test_tree 967s # gobject-query: /usr/bin/gobject-query 967s # tmpdir: /tmp/tmpk1pn1__4 967s # Running: ['/usr/bin/gobject-query', 'tree'] 967s # Return code: 0 967s # Output: 967s # GObject 967s # Error: 967s ok 4 __main__.TestGobjectQuery.test_version 967s # gobject-query: /usr/bin/gobject-query 967s # tmpdir: /tmp/tmpuzuenrxd 967s # Running: ['/usr/bin/gobject-query', '--version'] 967s # Return code: 0 967s # Output: 967s # 2.84.1 967s # Error: 967s 1..4 967s ok - glib/gobject-query.py.test 967s # Running test: glib/macros-c-99.test 967s ok - glib/macros-c-99.test 967s TAP version 14 967s # random seed: R02S8ac5ed062c6b91c23c2e163aacdb19d7 967s 1..4 967s # Start of C tests 967s ok 1 /C/standard-99 967s # End of C tests 967s # Start of alignof tests 967s ok 2 /alignof/fallback 967s # End of alignof tests 967s # Start of assert tests 967s ok 3 /assert/static 967s # End of assert tests 967s # Start of struct tests 967s ok 4 /struct/sizeof_member 967s # End of struct tests 967s # Running test: glib/utils.test 967s TAP version 14 967s # random seed: R02Sb63a72c476dab9c19686437a3b97523e 967s 1..41 967s # Start of utils tests 967s ok 1 /utils/language-names 967s ok 2 /utils/locale-variants 967s ok 3 /utils/version 967s ok 4 /utils/appname 967s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 967s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 967s ok 5 /utils/prgname-thread-safety 967s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 967s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 967s ok 6 /utils/tmpdir 967s ok 7 /utils/basic_bits 967s ok 8 /utils/bits 967s ok 9 /utils/swap 967s ok 10 /utils/find-program 967s ok 11 /utils/find-program-for-path 967s ok 12 /utils/debug 967s ok 13 /utils/codeset 967s ok 14 /utils/codeset2 967s ok 15 /utils/console-charset 967s ok 16 /utils/gettext 967s ok 17 /utils/username 967s ok 18 /utils/realname 967s ok 19 /utils/hostname 967s ok 20 /utils/xdgdirs 967s ok 21 /utils/specialdir 967s # NAME: Ubuntu 967s ok 22 /utils/os-info 967s ok 23 /utils/clear-pointer 967s ok 24 /utils/clear-pointer-cast 967s ok 25 /utils/take-pointer 967s ok 26 /utils/clear-source 967s ok 27 /utils/misc-mem 967s # /utils/aligned-mem summary: Aligned memory allocator 967s # Alignment must not be zero 967s # Alignment must be a power of two 967s # Alignment must be a multiple of sizeof(void*) 967s ok 28 /utils/aligned-mem 967s # /utils/free-sized summary: Check that g_free_sized() works 967s ok 29 /utils/free-sized 967s ok 30 /utils/nullify 967s ok 31 /utils/atexit 967s ok 32 /utils/check-setuid 967s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 967s ok 33 /utils/int-limits 967s ok 34 /utils/clear-list 967s ok 35 /utils/clear-slist 967s ok 36 /utils/steal-handle-id 967s # Start of specialdir tests 967s ok 37 /utils/specialdir/desktop 967s # End of specialdir tests 967s # Start of clear-pointer tests 967s ok 38 /utils/clear-pointer/side-effects 967s # End of clear-pointer tests 967s # Start of aligned-mem tests 967s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 967s ok 39 /utils/aligned-mem/alignment 967s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 967s ok 40 /utils/aligned-mem/zeroed 967s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 967s ok 41 /utils/aligned-mem/free-sized 967s # Start of subprocess tests 967s # End of subprocess tests 967s # End of aligned-mem tests 967s # End of utils tests 967s ok - glib/utils.test 967s # Running test: glib/pattern.test 967s TAP version 14 967s # random seed: R02Sd510454a717603498dac6d8e2e470d47 967s 1..90 967s # Start of pattern tests 967s # Start of compile tests 967s ok 1 /pattern/compile/0 967s ok 2 /pattern/compile/1 967s ok 3 /pattern/compile/2 967s ok 4 /pattern/compile/3 967s ok 5 /pattern/compile/4 967s ok 6 /pattern/compile/5 967s ok 7 /pattern/compile/6 967s ok 8 /pattern/compile/7 967s ok 9 /pattern/compile/8 967s ok 10 /pattern/compile/9 967s ok 11 /pattern/compile/10 967s ok 12 /pattern/compile/11 967s ok 13 /pattern/compile/12 967s ok 14 /pattern/compile/13 967s # End of compile tests 967s # Start of copy tests 967s ok 15 /pattern/copy/0 967s ok 16 /pattern/copy/1 967s ok 17 /pattern/copy/2 967s ok 18 /pattern/copy/3 967s ok 19 /pattern/copy/4 967s ok 20 /pattern/copy/5 967s ok 21 /pattern/copy/6 967s ok 22 /pattern/copy/7 967s ok 23 /pattern/copy/8 967s ok 24 /pattern/copy/9 967s ok 25 /pattern/copy/10 967s ok 26 /pattern/copy/11 967s ok 27 /pattern/copy/12 967s ok 28 /pattern/copy/13 967s # End of copy tests 967s # Start of match tests 967s ok 29 /pattern/match/0 967s ok 30 /pattern/match/1 967s ok 31 /pattern/match/2 967s ok 32 /pattern/match/3 967s ok 33 /pattern/match/4 967s ok - glib/pattern.test 967s # Running test: glib/references.test 967s ok - glib/references.test 967s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 967s ok 34 /pattern/match/5 967s ok 35 /pattern/match/6 967s ok 36 /pattern/match/7 967s ok 37 /pattern/match/8 967s ok 38 /pattern/match/9 967s ok 39 /pattern/match/10 967s ok 40 /pattern/match/11 967s ok 41 /pattern/match/12 967s ok 42 /pattern/match/13 967s ok 43 /pattern/match/14 967s ok 44 /pattern/match/15 967s ok 45 /pattern/match/16 967s ok 46 /pattern/match/17 967s ok 47 /pattern/match/18 967s ok 48 /pattern/match/19 967s ok 49 /pattern/match/20 967s ok 50 /pattern/match/21 967s ok 51 /pattern/match/22 967s ok 52 /pattern/match/23 967s ok 53 /pattern/match/24 967s ok 54 /pattern/match/25 967s ok 55 /pattern/match/26 967s ok 56 /pattern/match/27 967s ok 57 /pattern/match/28 967s ok 58 /pattern/match/29 967s ok 59 /pattern/match/30 967s ok 60 /pattern/match/31 967s ok 61 /pattern/match/32 967s ok 62 /pattern/match/33 967s ok 63 /pattern/match/34 967s ok 64 /pattern/match/35 967s ok 65 /pattern/match/36 967s ok 66 /pattern/match/37 967s ok 67 /pattern/match/38 967s ok 68 /pattern/match/39 967s ok 69 /pattern/match/40 967s ok 70 /pattern/match/41 967s ok 71 /pattern/match/42 967s ok 72 /pattern/match/43 967s ok 73 /pattern/match/44 967s ok 74 /pattern/match/45 967s ok 75 /pattern/match/46 967s ok 76 /pattern/match/47 967s ok 77 /pattern/match/48 967s ok 78 /pattern/match/49 967s ok 79 /pattern/match/50 967s # End of match tests 967s # Start of equal tests 967s ok 80 /pattern/equal/0 967s ok 81 /pattern/equal/1 967s ok 82 /pattern/equal/2 967s ok 83 /pattern/equal/3 967s ok 84 /pattern/equal/4 967s ok 85 /pattern/equal/5 967s ok 86 /pattern/equal/6 967s ok 87 /pattern/equal/7 967s ok 88 /pattern/equal/8 967s ok 89 /pattern/equal/9 967s ok 90 /pattern/equal/10 967s # End of equal tests 967s # End of pattern tests 967s TAP version 14 967s # random seed: R02Sfb064d90049210c814631f373c602872 967s 1..1 967s # Start of gobject tests 967s ok 1 /gobject/references 967s # End of gobject tests 967s TAP version 14 967s # random seed: R02Sf56e912ff6e886d5244cb91faed59679 967s 1..8 967s # Start of gdbus tests 967s # Start of codegen tests 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/annotations/.dirs/runtime 967s ok 1 /gdbus/codegen/annotations 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/interface_stability/.dirs/runtime 967s ok 2 /gdbus/codegen/interface_stability 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/object-manager/.dirs/runtime 967s ok 3 /gdbus/codegen/object-manager 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/property-naming/.dirs/runtime 967s ok 4 /gdbus/codegen/property-naming 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/autocleanups/.dirs/runtime 967s ok 5 /gdbus/codegen/autocleanups 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/deprecations/.dirs/runtime 967s ok 6 /gdbus/codegen/deprecations 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/standalone-interface-info/.dirs/runtime 967s ok 7 /gdbus/codegen/standalone-interface-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_P3EB62/gdbus/codegen/unix-fd-list/.dirs/runtime 967s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 967s ok 8 /gdbus/codegen/unix-fd-list 967s # End of codegen tests 967s # End of gdbus tests 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 967s ok - glib/gdbus-test-codegen-min-required-2-64.test 967s # Running test: glib/autoptr-girepository.test 967s TAP version 14 967s # random seed: R02Seb96b9d389ad681532f4d60277b06711 967s 1..24 967s # Start of autoptr tests 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/repository/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 1 /autoptr/repository 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/typelib/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 2 /autoptr/typelib 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/base-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 3 /autoptr/base-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/arg-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 4 /autoptr/arg-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/callable-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 5 /autoptr/callable-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/callback-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 6 /autoptr/callback-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/constant-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 7 /autoptr/constant-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/enum-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 8 /autoptr/enum-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/field-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 9 /autoptr/field-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/flags-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 10 /autoptr/flags-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/function-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 11 /autoptr/function-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/interface-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 12 /autoptr/interface-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/object-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 13 /autoptr/object-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/property-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 14 /autoptr/property-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/registered-type-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 15 /autoptr/registered-type-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/signal-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 16 /autoptr/signal-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/home 967s ok - glib/autoptr-girepository.test 967s # Running test: glib/utf8-misc.test 967s ok - glib/utf8-misc.test 967s # Running test: glib/binding.test 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/struct-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 17 /autoptr/struct-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/type-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 18 /autoptr/type-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/union-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 19 /autoptr/union-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/value-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 20 /autoptr/value-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/autoptr/vfunc-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 21 /autoptr/vfunc-info 967s # End of autoptr tests 967s # Start of auto tests 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/auto/arg-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 22 /auto/arg-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/auto/type-info/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 23 /auto/type-info 967s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/home 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/cache 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/system-config2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/config 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/system-data2 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/data 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/state 967s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_NV5B62/auto/function-invoker/.dirs/runtime 967s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 967s ok 24 /auto/function-invoker 967s # End of auto tests 967s TAP version 14 967s # random seed: R02S098cc78db7668be7781c86676b991473 967s 1..7 967s # Start of utf8 tests 967s ok 1 /utf8/strlen 967s ok 2 /utf8/strncpy 967s ok 3 /utf8/strrchr 967s ok 4 /utf8/reverse 967s ok 5 /utf8/substring 967s ok 6 /utf8/make-valid 967s ok 7 /utf8/truncate-middle 967s # End of utf8 tests 967s TAP version 14 967s # random seed: R02S5f09abc225b42db3f7a4744314ff30e2 967s 1..19 967s # Start of binding tests 967s ok 1 /binding/default 967s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 967s ok 2 /binding/canonicalisation 967s ok 3 /binding/bidirectional 967s ok 4 /binding/transform 967s ok 5 /binding/transform-default 967s ok 6 /binding/transform-closure 967s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 967s ok 7 /binding/chain 967s ok 8 /binding/sync-create 967s ok 9 /binding/invert-boolean 967s ok 10 /binding/same-object 967s ok 11 /binding/unbind 967s ok 12 /binding/unbind-weak 967s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 967s ok 13 /binding/unbind-multiple 967s ok 14 /binding/fail 967s ok 15 /binding/interface 967s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 967s ok 16 /binding/concurrent-unbind 967s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 967s ok 17 /binding/concurrent-finalizing 967s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 967s ok 18 /binding/dispose-source 967s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 967s ok 19 /binding/dispose-target 967s # End of binding tests 967s ok - glib/binding.test 967s # Running test: glib/gio-tool.py.test 967s TAP version 13 967s ok 1 __main__.TestGioTool.test_help 967s # gio: /usr/bin/gio 967s # tmpdir: /tmp/tmpyfe5wik6 967s # Running: ['/usr/bin/gio', '--help'] 967s # Return code: 0 967s # Output: 967s # Usage: 967s # gio COMMAND [ARGS…] 967s # 967s # Commands: 967s # help Print help 967s # version Print version 967s # cat Concatenate files to standard output 967s # copy Copy one or more files 967s # info Show information about locations 967s # launch Launch an application from a desktop file 967s # list List the contents of locations 967s # mime Get or set the handler for a mimetype 967s # mkdir Create directories 967s # monitor Monitor files and directories for changes 967s # mount Mount or unmount the locations 967s # move Move one or more files 967s # open Open files with the default application 967s # rename Rename a file 967s # remove Delete one or more files 967s # save Read from standard input and save 967s # set Set a file attribute 967s # trash Move files or directories to the trash 967s # tree Lists the contents of locations in a tree 967s # 967s # Use “gio help COMMAND†to get detailed help. 967s # Error: 967s # 967s # Running: ['/usr/bin/gio', 'help'] 967s # Return code: 0 967s # Output: 967s # Usage: 967s # gio COMMAND [ARGS…] 967s # 967s # Commands: 967s # help Print help 967s # version Print version 967s # cat Concatenate files to standard output 967s # copy Copy one or more files 967s # info Show information about locations 967s # launch Launch an application from a desktop file 967s # list List the contents of locations 967s # mime Get or set the handler for a mimetype 967s # mkdir Create directories 967s # monitor Monitor files and directories for changes 967s # mount Mount or unmount the locations 967s # move Move one or more files 967s # open Open files with the default application 967s # rename Rename a file 967s # remove Delete one or more files 967s # save Read from standard input and save 967s # set Set a file attribute 967s # trash Move files or directories to the trash 967s # tree Lists the contents of locations in a tree 967s # 967s # Use “gio help COMMAND†to get detailed help. 967s # Error: 967s ok 2 __main__.TestGioTool.test_info_non_default_attributes 967s # gio: /usr/bin/gio 967s # tmpdir: /tmp/tmpwu23_k1j 967s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpwu23_k1j/tmppwqxrhlq'] 967s # Return code: 0 967s # Output: 967s # uri: file:///tmp/tmpwu23_k1j/tmppwqxrhlq 967s # local path: /tmp/tmpwu23_k1j/tmppwqxrhlq 967s # unix mount: /dev/vda2[/lxd/containers/autopkgtest-lxd-zudtqu/rootfs] / btrfs rw,relatime,idmapped,discard=async,space_cache=v2,user_subvol_rm_allowed,subvolid=22427,subvol=/lxd/containers/autopkgtest-lxd-zudtqu 967s # attributes: 967s # standard::content-type: application/x-zerosize 967s # Error: 967s ok 3 __main__.TestGioTool.test_no_args 967s # gio: /usr/bin/gio 967s # tmpdir: /tmp/tmptiualg8q 967s # Running: ['/usr/bin/gio'] 967s # Return code: 1 967s # Output: 967s # 967s # Error: 967s # Usage: 967s # gio COMMAND [ARGS…] 967s # 967s # Commands: 967s # help Print help 967s # version Print version 967s # cat Concatenate files to standard output 967s # copy Copy one or more files 967s # info Show information about locations 967s # launch Launch an application from a desktop file 967s # list List the contents of locations 967s # mime Get or set the handler for a mimetype 967s # mkdir Create directories 967s # monitor Monitor files and directories for changes 967s # mount Mount or unmount the locations 967s # move Move one or more files 967s # open Open files with the default application 967s # rename Rename a file 967s # remove Delete one or more files 967s # save Read from standard input and save 967s # set Set a file attribute 967s # trash Move files or directories to the trash 967s # tree Lists the contents of locations in a tree 967s # 967s # Use “gio help COMMAND†to get detailed help. 967s 1..3 967s ok - glib/gio-tool.py.test 967s # Running test: glib/timeout.test 967s TAP version 14 967s # random seed: R02S27da97efde86f246b64be49246a9dec0 967s 1..5 967s # Start of timeout tests 967s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 968s # Executing: glib/timeout.test 969s ok 1 /timeout/seconds 969s # slow test /timeout/seconds executed in 2.10 secs 971s ok 2 /timeout/seconds-once 971s # slow test /timeout/seconds-once executed in 2.10 secs 971s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 973s # Executing: glib/timeout.test 973s ok 3 /timeout/weeks-overflow 973s # slow test /timeout/weeks-overflow executed in 2.10 secs 973s ok 4 /timeout/far-future-ready-time 973s ok 5 /timeout/rounding # SKIP Not reliable on older ARM hardware 973s # End of timeout tests 973s ok - glib/timeout.test 973s # Running test: glib/power-profile-monitor-portal.test 974s TAP version 13 974s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 974s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 974s 1..2 974s ok - glib/power-profile-monitor-portal.test 974s # Running test: glib/properties-introspection.test 974s TAP version 14 974s # random seed: R02Sc58c8de2bb26f3eee7a5136b6c5d7181 974s 1..2 974s # Start of properties tests 974s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 974s ok 1 /properties/introspection 974s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 974s ok 2 /properties/collision 974s # End of properties tests 974s ok - glib/properties-introspection.test 974s # Running test: glib/spawn-path-search.test 974s TAP version 14 974s # random seed: R02Sf8143b156f69084f96e0cc92aa0306eb 974s 1..7 974s # Start of spawn tests 974s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 974s # 974s # this is spawn-test-helper from glib/tests 974s # 974s ok 1 /spawn/do-not-search 974s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 974s # 974s # this is spawn-test-helper from path-test-subdir 974s # 974s ok 2 /spawn/search-path 974s # /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. 974s # 974s # this is spawn-test-helper from path-test-subdir 974s # 974s ok 3 /spawn/search-path-from-envp 974s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 974s # 974s # this is spawn-test-helper from path-test-subdir 974s # 974s ok 4 /spawn/search-path-ambiguous 974s # 974s # this is spawn-test-helper from path-test-subdir 974s # 974s ok 5 /spawn/search-path-heap-allocation 974s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 974s ok - glib/spawn-path-search.test 974s # Running test: glib/utf8-validate.test 974s # 974s # this is spawn-test-helper from glib/tests 974s # 974s ok 6 /spawn/search-path-fallback-in-environ 974s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 974s # 974s # this is spawn-test-helper from glib/tests 974s # 974s ok 7 /spawn/search-path-fallback-in-envp 974s # End of spawn tests 974s TAP version 14 974s # random seed: R02S8d1b0eec57cae9af01de514c4f7d4406 974s 1..238 974s # Start of utf8 tests 974s # Vector 0 974s # Vector 1 974s # Vector 2 974s # Vector 3 974s # Vector 4 974s # Vector 5 974s # Vector 6 974s # Vector 7 974s # Vector 8 974s # Vector 9 974s # Vector 10 974s # Vector 11 974s # Vector 12 974s # Vector 13 974s # Vector 14 974s # Vector 15 974s # Vector 16 974s # Vector 17 974s # Vector 18 974s # Vector 19 974s # Vector 20 974s # Vector 21 974s # Vector 22 974s # Vector 23 974s # Vector 24 974s # Vector 25 974s # Vector 26 974s # Vector 27 974s ok 1 /utf8/get-char-validated 974s # Start of validate tests 974s ok 2 /utf8/validate/0 974s ok 3 /utf8/validate/1 974s ok 4 /utf8/validate/2 974s ok 5 /utf8/validate/3 974s ok 6 /utf8/validate/4 974s ok 7 /utf8/validate/5 974s ok 8 /utf8/validate/6 974s ok 9 /utf8/validate/7 974s ok 10 /utf8/validate/8 974s ok 11 /utf8/validate/9 974s ok 12 /utf8/validate/10 974s ok 13 /utf8/validate/11 974s ok 14 /utf8/validate/12 974s ok 15 /utf8/validate/13 974s ok 16 /utf8/validate/14 974s ok 17 /utf8/validate/15 974s ok 18 /utf8/validate/16 974s ok 19 /utf8/validate/17 974s ok 20 /utf8/validate/18 974s ok 21 /utf8/validate/19 974s ok 22 /utf8/validate/20 974s ok 23 /utf8/validate/21 974s ok 24 /utf8/validate/22 974s ok 25 /utf8/validate/23 974s ok 26 /utf8/validate/24 974s ok 27 /utf8/validate/25 974s ok 28 /utf8/validate/26 974s ok 29 /utf8/validate/27 974s ok 30 /utf8/validate/28 974s ok 31 /utf8/validate/29 974s ok 32 /utf8/validate/30 974s ok 33 /utf8/validate/31 974s ok 34 /utf8/validate/32 974s ok 35 /utf8/validate/33 974s ok - glib/utf8-validate.test 974s # Running test: glib/bindinggroup.test 974s ok - glib/bindinggroup.test 974s # Running test: glib/sequence.test 974s ok 36 /utf8/validate/34 974s ok 37 /utf8/validate/35 974s ok 38 /utf8/validate/36 974s ok 39 /utf8/validate/37 974s ok 40 /utf8/validate/38 974s ok 41 /utf8/validate/39 974s ok 42 /utf8/validate/40 974s ok 43 /utf8/validate/41 974s ok 44 /utf8/validate/42 974s ok 45 /utf8/validate/43 974s ok 46 /utf8/validate/44 974s ok 47 /utf8/validate/45 974s ok 48 /utf8/validate/46 974s ok 49 /utf8/validate/47 974s ok 50 /utf8/validate/48 974s ok 51 /utf8/validate/49 974s ok 52 /utf8/validate/50 974s ok 53 /utf8/validate/51 974s ok 54 /utf8/validate/52 974s ok 55 /utf8/validate/53 974s ok 56 /utf8/validate/54 974s ok 57 /utf8/validate/55 974s ok 58 /utf8/validate/56 974s ok 59 /utf8/validate/57 974s ok 60 /utf8/validate/58 974s ok 61 /utf8/validate/59 974s ok 62 /utf8/validate/60 974s ok 63 /utf8/validate/61 974s ok 64 /utf8/validate/62 974s ok 65 /utf8/validate/63 974s ok 66 /utf8/validate/64 974s ok 67 /utf8/validate/65 974s ok 68 /utf8/validate/66 974s ok 69 /utf8/validate/67 974s ok 70 /utf8/validate/68 974s ok 71 /utf8/validate/69 974s ok 72 /utf8/validate/70 974s ok 73 /utf8/validate/71 974s ok 74 /utf8/validate/72 974s ok 75 /utf8/validate/73 974s ok 76 /utf8/validate/74 974s ok 77 /utf8/validate/75 974s ok 78 /utf8/validate/76 974s ok 79 /utf8/validate/77 974s ok 80 /utf8/validate/78 974s ok 81 /utf8/validate/79 974s ok 82 /utf8/validate/80 974s ok 83 /utf8/validate/81 974s ok 84 /utf8/validate/82 974s ok 85 /utf8/validate/83 974s ok 86 /utf8/validate/84 974s ok 87 /utf8/validate/85 974s ok 88 /utf8/validate/86 974s ok 89 /utf8/validate/87 974s ok 90 /utf8/validate/88 974s ok 91 /utf8/validate/89 974s ok 92 /utf8/validate/90 974s ok 93 /utf8/validate/91 974s ok 94 /utf8/validate/92 974s ok 95 /utf8/validate/93 974s ok 96 /utf8/validate/94 974s ok 97 /utf8/validate/95 974s ok 98 /utf8/validate/96 974s ok 99 /utf8/validate/97 974s ok 100 /utf8/validate/98 974s ok 101 /utf8/validate/99 974s ok 102 /utf8/validate/100 974s ok 103 /utf8/validate/101 974s ok 104 /utf8/validate/102 974s ok 105 /utf8/validate/103 974s ok 106 /utf8/validate/104 974s ok 107 /utf8/validate/105 974s ok 108 /utf8/validate/106 974s ok 109 /utf8/validate/107 974s ok 110 /utf8/validate/108 974s ok 111 /utf8/validate/109 974s ok 112 /utf8/validate/110 974s ok 113 /utf8/validate/111 974s ok 114 /utf8/validate/112 974s ok 115 /utf8/validate/113 974s ok 116 /utf8/validate/114 974s ok 117 /utf8/validate/115 974s ok 118 /utf8/validate/116 974s ok 119 /utf8/validate/117 974s ok 120 /utf8/validate/118 974s ok 121 /utf8/validate/119 974s ok 122 /utf8/validate/120 974s ok 123 /utf8/validate/121 974s ok 124 /utf8/validate/122 974s ok 125 /utf8/validate/123 974s ok 126 /utf8/validate/124 974s ok 127 /utf8/validate/125 974s ok 128 /utf8/validate/126 974s ok 129 /utf8/validate/127 974s ok 130 /utf8/validate/128 974s ok 131 /utf8/validate/129 974s ok 132 /utf8/validate/130 974s ok 133 /utf8/validate/131 974s ok 134 /utf8/validate/132 974s ok 135 /utf8/validate/133 974s ok 136 /utf8/validate/134 974s ok 137 /utf8/validate/135 974s ok 138 /utf8/validate/136 974s ok 139 /utf8/validate/137 974s ok 140 /utf8/validate/138 974s ok 141 /utf8/validate/139 974s ok 142 /utf8/validate/140 974s ok 143 /utf8/validate/141 974s ok 144 /utf8/validate/142 974s ok 145 /utf8/validate/143 974s ok 146 /utf8/validate/144 974s ok 147 /utf8/validate/145 974s ok 148 /utf8/validate/146 974s ok 149 /utf8/validate/147 974s ok 150 /utf8/validate/148 974s ok 151 /utf8/validate/149 974s ok 152 /utf8/validate/150 974s ok 153 /utf8/validate/151 974s ok 154 /utf8/validate/152 974s ok 155 /utf8/validate/153 974s ok 156 /utf8/validate/154 974s ok 157 /utf8/validate/155 974s ok 158 /utf8/validate/156 974s ok 159 /utf8/validate/157 974s ok 160 /utf8/validate/158 974s ok 161 /utf8/validate/159 974s ok 162 /utf8/validate/160 974s ok 163 /utf8/validate/161 974s ok 164 /utf8/validate/162 974s ok 165 /utf8/validate/163 974s ok 166 /utf8/validate/164 974s ok 167 /utf8/validate/165 974s ok 168 /utf8/validate/166 974s ok 169 /utf8/validate/167 974s ok 170 /utf8/validate/168 974s ok 171 /utf8/validate/169 974s ok 172 /utf8/validate/170 974s ok 173 /utf8/validate/171 974s ok 174 /utf8/validate/172 974s ok 175 /utf8/validate/173 974s ok 176 /utf8/validate/174 974s ok 177 /utf8/validate/175 974s ok 178 /utf8/validate/176 974s ok 179 /utf8/validate/177 974s ok 180 /utf8/validate/178 974s ok 181 /utf8/validate/179 974s ok 182 /utf8/validate/180 974s ok 183 /utf8/validate/181 974s ok 184 /utf8/validate/182 974s ok 185 /utf8/validate/183 974s ok 186 /utf8/validate/184 974s ok 187 /utf8/validate/185 974s ok 188 /utf8/validate/186 974s ok 189 /utf8/validate/187 974s ok 190 /utf8/validate/188 974s ok 191 /utf8/validate/189 974s ok 192 /utf8/validate/190 974s ok 193 /utf8/validate/191 974s ok 194 /utf8/validate/192 974s ok 195 /utf8/validate/193 974s ok 196 /utf8/validate/194 974s ok 197 /utf8/validate/195 974s ok 198 /utf8/validate/196 974s ok 199 /utf8/validate/197 974s ok 200 /utf8/validate/198 974s ok 201 /utf8/validate/199 974s ok 202 /utf8/validate/200 974s ok 203 /utf8/validate/201 974s ok 204 /utf8/validate/202 974s ok 205 /utf8/validate/203 974s ok 206 /utf8/validate/204 974s ok 207 /utf8/validate/205 974s ok 208 /utf8/validate/206 974s ok 209 /utf8/validate/207 974s ok 210 /utf8/validate/208 974s ok 211 /utf8/validate/209 974s ok 212 /utf8/validate/210 974s ok 213 /utf8/validate/211 974s ok 214 /utf8/validate/212 974s ok 215 /utf8/validate/213 974s ok 216 /utf8/validate/214 974s ok 217 /utf8/validate/215 974s ok 218 /utf8/validate/216 974s ok 219 /utf8/validate/217 974s ok 220 /utf8/validate/218 974s ok 221 /utf8/validate/219 974s ok 222 /utf8/validate/220 974s ok 223 /utf8/validate/221 974s ok 224 /utf8/validate/222 974s ok 225 /utf8/validate/223 974s ok 226 /utf8/validate/224 974s ok 227 /utf8/validate/225 974s ok 228 /utf8/validate/226 974s ok 229 /utf8/validate/227 974s ok 230 /utf8/validate/228 974s ok 231 /utf8/validate/229 974s ok 232 /utf8/validate/230 974s ok 233 /utf8/validate/231 974s ok 234 /utf8/validate/232 974s ok 235 /utf8/validate/233 974s ok 236 /utf8/validate/234 974s ok 237 /utf8/validate/235 974s ok 238 /utf8/validate/236 974s # End of validate tests 974s # End of utf8 tests 974s TAP version 14 974s # random seed: R02Sf3efc1ab7202a9fca19c19653753cfd2 974s 1..11 974s # Start of GObject tests 974s # Start of BindingGroup tests 974s ok 1 /GObject/BindingGroup/invalid 974s ok 2 /GObject/BindingGroup/default 974s ok 3 /GObject/BindingGroup/bidirectional 974s ok 4 /GObject/BindingGroup/transform 974s ok 5 /GObject/BindingGroup/transform-closures 974s ok 6 /GObject/BindingGroup/same-object 974s ok 7 /GObject/BindingGroup/weak-ref-source 974s ok 8 /GObject/BindingGroup/weak-ref-target 974s ok 9 /GObject/BindingGroup/properties 974s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 974s ok 11 /GObject/BindingGroup/empty-closures 974s # End of BindingGroup tests 974s # End of GObject tests 974s TAP version 14 974s # random seed: R02S21fcee5c750ec031af93b8faf545c313 974s 1..16 974s # Start of sequence tests 974s ok 1 /sequence/out-of-range-jump 974s ok 2 /sequence/iter-move 974s ok 3 /sequence/insert-sorted-non-pointer 974s ok 4 /sequence/stable-sort 974s ok 5 /sequence/is_empty 974s # Start of random tests 975s ok 6 /sequence/random/seed:825541564 975s # slow test /sequence/random/seed:825541564 executed in 0.61 secs 975s ok 7 /sequence/random/seed:801678400 975s # slow test /sequence/random/seed:801678400 executed in 0.58 secs 976s ok 8 /sequence/random/seed:1477639090 976s # slow test /sequence/random/seed:1477639090 executed in 0.60 secs 976s ok 9 /sequence/random/seed:3369132895 976s # slow test /sequence/random/seed:3369132895 executed in 0.55 secs 977s ok 10 /sequence/random/seed:1192944867 977s # slow test /sequence/random/seed:1192944867 executed in 0.58 secs 978s ok 11 /sequence/random/seed:770458294 978s # slow test /sequence/random/seed:770458294 executed in 0.60 secs 978s # Executing: glib/sequence.test 978s ok 12 /sequence/random/seed:1099575817 978s # slow test /sequence/random/seed:1099575817 executed in 0.58 secs 979s ok 13 /sequence/random/seed:590523467 979s # slow test /sequence/random/seed:590523467 executed in 0.60 secs 979s ok 14 /sequence/random/seed:3583571454 979s # slow test /sequence/random/seed:3583571454 executed in 0.60 secs 980s ok 15 /sequence/random/seed:579241222 980s # slow test /sequence/random/seed:579241222 executed in 0.60 secs 981s ok - glib/sequence.test 981s ok 16 /sequence/random/seed:1879893780 981s # slow test /sequence/random/seed:1879893780 executed in 0.58 secs 981s # End of random tests 981s # End of sequence tests 981s # Running test: glib/tls-interaction.test 981s TAP version 14 981s # random seed: R02S6f902af38740f0625c88f575dcc843ee 981s 1..42 981s # Start of tls-interaction tests 981s # Start of ask-password tests 981s # Start of invoke-with-loop tests 981s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 981s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 981s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 981s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 981s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 981s # End of invoke-with-loop tests 981s # Start of invoke-without-loop tests 981s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 981s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 981s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 981s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 981s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 981s # End of invoke-without-loop tests 981s # Start of invoke-in-loop tests 981s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 981s ok - glib/tls-interaction.test 981s # Running test: glib/pollable.test 981s ok - glib/pollable.test 981s # Running test: glib/gvariant.test 981s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 981s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 981s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 981s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 981s # End of invoke-in-loop tests 981s # Start of sync tests 981s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 981s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 981s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 981s # End of sync tests 981s # Start of async tests 981s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 981s ok 20 /tls-interaction/ask-password/async/async-implementation-success 981s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 981s # End of async tests 981s # End of ask-password tests 981s # Start of request-certificate tests 981s # Start of invoke-with-loop tests 981s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 981s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 981s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 981s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 981s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 981s # End of invoke-with-loop tests 981s # Start of invoke-without-loop tests 981s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 981s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 981s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 981s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 981s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 981s # End of invoke-without-loop tests 981s # Start of invoke-in-loop tests 981s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 981s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 981s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 981s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 981s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 981s # End of invoke-in-loop tests 981s # Start of sync tests 981s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 981s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 981s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 981s # End of sync tests 981s # Start of async tests 981s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 981s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 981s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 981s # End of async tests 981s # End of request-certificate tests 981s # End of tls-interaction tests 981s TAP version 14 981s # random seed: R02S1b172244f0f03849843e1e5412895376 981s 1..6 981s # Start of pollable tests 981s ok 1 /pollable/converter 981s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 981s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x4b39220 and GSocketClientAsyncConnectData 0x4b39f78 981s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 981s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 981s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x4b40f30 for GSocketClientAsyncConnectData 0x4b39f78 981s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 981s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 981s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 981s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 981s ok 2 /pollable/socket 981s # Start of unix tests 981s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 981s ok 3 /pollable/unix/pipe 981s # /pollable/unix/pty summary: Test that PTYs are considered pollable 981s ok 4 /pollable/unix/pty 981s # /pollable/unix/file summary: Test that regular files are not considered pollable 981s ok 5 /pollable/unix/file 981s # /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 981s ok 6 /pollable/unix/nulldev 981s # End of unix tests 981s # End of pollable tests 981s TAP version 14 981s # random seed: R02S9a5d9f01cb3f0cf814684dcfa2b807d2 981s 1..69 981s # Start of gvariant tests 981s ok 1 /gvariant/type 981s ok 2 /gvariant/typeinfo 981s ok 3 /gvariant/string 981s ok 4 /gvariant/utf8 981s ok 5 /gvariant/utf8-new-strings 981s ok 6 /gvariant/containers 981s ok 7 /gvariant/format-strings 981s ok 8 /gvariant/invalid-varargs 981s ok 9 /gvariant/varargs 981s ok 10 /gvariant/valist 981s ok 11 /gvariant/builder-memory 981s ok 12 /gvariant/hashing 981s ok 13 /gvariant/byteswap 982s ok 14 /gvariant/parser 982s ok 15 /gvariant/parse-failures 982s ok 16 /gvariant/parse-positional 982s ok 17 /gvariant/floating 982s ok 18 /gvariant/bytestring 982s ok 19 /gvariant/lookup-value 982s ok 20 /gvariant/lookup 982s ok 21 /gvariant/compare 982s ok 22 /gvariant/equal 982s ok 23 /gvariant/fixed-array 982s ok 24 /gvariant/check-format-string 982s ok 25 /gvariant/checksum-basic 982s ok 26 /gvariant/checksum-nested 982s ok 27 /gvariant/gbytes 982s ok 28 /gvariant/print-context 982s ok 29 /gvariant/error-quark 982s ok 30 /gvariant/stack-builder-init 982s ok 31 /gvariant/stack-builder-init-static 982s ok 32 /gvariant/stack-builder-init-unset 982s ok 33 /gvariant/stack-dict-init 982s ok 34 /gvariant/unaligned-construction 982s # Start of type tests 982s # Start of string-scan tests 982s # Start of recursion tests 982s ok 35 /gvariant/type/string-scan/recursion/tuple 982s ok 36 /gvariant/type/string-scan/recursion/array 982s # End of recursion tests 982s # End of string-scan tests 982s # End of type tests 982s # Start of serialiser tests 982s ok 37 /gvariant/serialiser/maybe 982s ok 38 /gvariant/serialiser/array 982s ok 39 /gvariant/serialiser/tuple 982s ok 40 /gvariant/serialiser/variant 982s ok 41 /gvariant/serialiser/strings 988s # Executing: glib/gvariant.test 988s ok 42 /gvariant/serialiser/byteswap 988s # slow test /gvariant/serialiser/byteswap executed in 1.26 secs 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 988s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 988s ok 43 /gvariant/serialiser/children 988s # Start of byteswap tests 988s ok 44 /gvariant/serialiser/byteswap/zero-sized 988s # End of byteswap tests 988s # Start of fuzz tests 988s ok - glib/gvariant.test 988s # Running test: glib/mkenums.py.test 988s ok - glib/mkenums.py.test 988s # Running test: glib/guuid.test 988s ok - glib/guuid.test 988s # Running test: glib/gdbus-names.test 988s ok - glib/gdbus-names.test 988s # Running test: glib/g-icon.test 988s ok - glib/g-icon.test 988s # Running test: glib/performance-threaded.test 988s ok 45 /gvariant/serialiser/fuzz/1% 988s # slow test /gvariant/serialiser/fuzz/1% executed in 0.69 secs 988s ok 46 /gvariant/serialiser/fuzz/5% 988s ok 47 /gvariant/serialiser/fuzz/9% 988s # slow test /gvariant/serialiser/fuzz/9% executed in 0.74 secs 988s ok 48 /gvariant/serialiser/fuzz/13% 988s # slow test /gvariant/serialiser/fuzz/13% executed in 0.74 secs 988s ok 49 /gvariant/serialiser/fuzz/17% 988s # End of fuzz tests 988s # End of serialiser tests 988s # Start of utf8 tests 988s # Start of subprocess tests 988s # End of subprocess tests 988s # End of utf8 tests 988s # Start of varargs tests 988s # Start of subprocess tests 988s # End of subprocess tests 988s # End of varargs tests 988s # Start of byteswap tests 988s # /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. 988s ok 50 /gvariant/byteswap/non-normal-non-aligned 988s # End of byteswap tests 988s # Start of parser tests 988s ok 51 /gvariant/parser/integer-bounds 988s ok 52 /gvariant/parser/recursion 988s # Start of recursion tests 988s ok 53 /gvariant/parser/recursion/typedecls 988s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 988s # Text form 0: @mmmu 5 988s # Text form 1: @mmmas ['hello'] 988s # Text form 2: @mmmu just just nothing 988s # Text form 3: @mmmas just just nothing 988s # Text form 4: @mmmu just nothing 988s # Text form 5: @mmmas just nothing 988s # Text form 6: @mmmu nothing 988s # Text form 7: @mmmas nothing 988s ok 54 /gvariant/parser/recursion/maybes 988s # End of recursion tests 988s # End of parser tests 988s # Start of parse tests 988s # Start of subprocess tests 988s # End of subprocess tests 988s # End of parse tests 988s # Start of normal-checking tests 988s ok 55 /gvariant/normal-checking/tuples 988s ok 56 /gvariant/normal-checking/array-offsets 988s ok 57 /gvariant/normal-checking/array-offsets2 988s ok 58 /gvariant/normal-checking/tuple-offsets 988s ok 59 /gvariant/normal-checking/tuple-offsets2 988s ok 60 /gvariant/normal-checking/tuple-offsets3 988s ok 61 /gvariant/normal-checking/tuple-offsets4 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 988s ok 62 /gvariant/normal-checking/tuple-offsets5 988s ok 63 /gvariant/normal-checking/empty-object-path 988s # Start of array-offsets tests 988s ok 64 /gvariant/normal-checking/array-offsets/overlapped 988s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 988s # End of array-offsets tests 988s # Start of tuple-offsets tests 988s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 988s # End of tuple-offsets tests 988s # End of normal-checking tests 988s # Start of recursion-limits tests 988s ok 67 /gvariant/recursion-limits/variant-in-variant 988s ok 68 /gvariant/recursion-limits/array-in-variant 988s # End of recursion-limits tests 988s # End of gvariant tests 988s # Start of gvarianttype tests 988s ok 69 /gvarianttype/hash 988s # End of gvarianttype tests 988s TAP version 13 988s ok 1 __main__.TestMkenums.test_available_in 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp7ev1rgtp 988s # rspfile: False 988s # /tmp/tmp7ev1rgtp/tmpibvgbc76.h: 988s # typedef enum { 988s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 988s # } GDBusServerFlags; 988s # 988s # /tmp/tmp7ev1rgtp/tmptliom7qh.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp7ev1rgtp/tmptliom7qh.template', '/tmp/tmp7ev1rgtp/tmpibvgbc76.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmp7ev1rgtp/tmpibvgbc76.h 988s # basename: tmpibvgbc76.h 988s # enumeration-production 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-header 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-production 988s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 988s # valuenick: user 988s # valuenum: 4 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-tail 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 2 __main__.TestMkenums.test_comma_in_enum_value 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpiijub4lp 988s # rspfile: False 988s # /tmp/tmpiijub4lp/tmpyfhhopl1.h: 988s # typedef enum { 988s # ENUM_VALUE_WITH_COMMA = ',', 988s # } TestCommaEnum; 988s # 988s # /tmp/tmpiijub4lp/tmp3buiklpi.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpiijub4lp/tmp3buiklpi.template', '/tmp/tmpiijub4lp/tmpyfhhopl1.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpiijub4lp/tmpyfhhopl1.h 988s # basename: tmpyfhhopl1.h 988s # enumeration-production 988s # EnumName: TestCommaEnum 988s # enum_name: test_comma_enum 988s # ENUMNAME: TEST_COMMA_ENUM 988s # ENUMSHORT: COMMA_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: TestCommaEnum 988s # enum_name: test_comma_enum 988s # ENUMNAME: TEST_COMMA_ENUM 988s # ENUMSHORT: COMMA_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_WITH_COMMA 988s # valuenick: comma 988s # valuenum: 44 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: TestCommaEnum 988s # enum_name: test_comma_enum 988s # ENUMNAME: TEST_COMMA_ENUM 988s # ENUMSHORT: COMMA_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 3 __main__.TestMkenums.test_deprecated_in 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpfv0l4111 988s # rspfile: False 988s # /tmp/tmpfv0l4111/tmp7prvfhb6.h: 988s # typedef enum { 988s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 988s # } GDBusServerFlags; 988s # 988s # /tmp/tmpfv0l4111/tmpkgmoglq0.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpfv0l4111/tmpkgmoglq0.template', '/tmp/tmpfv0l4111/tmp7prvfhb6.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpfv0l4111/tmp7prvfhb6.h 988s # basename: tmp7prvfhb6.h 988s # enumeration-production 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-header 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-production 988s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 988s # valuenick: user 988s # valuenum: 4 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-tail 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 4 __main__.TestMkenums.test_deprecated_in_for 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpecfljxp0 988s # rspfile: False 988s # /tmp/tmpecfljxp0/tmpy2upq9r8.h: 988s # typedef enum { 988s # 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) 988s # } GDBusServerFlags; 988s # 988s # /tmp/tmpecfljxp0/tmpu4i1ruh2.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpecfljxp0/tmpu4i1ruh2.template', '/tmp/tmpecfljxp0/tmpy2upq9r8.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpecfljxp0/tmpy2upq9r8.h 988s # basename: tmpy2upq9r8.h 988s # enumeration-production 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-header 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-production 988s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 988s # valuenick: user 988s # valuenum: 4 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-tail 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 5 __main__.TestMkenums.test_empty_header 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpfqd8jaku 988s # rspfile: False 988s # /tmp/tmpfqd8jaku/tmp0hzlm6bk.h: 988s # /tmp/tmpfqd8jaku/tmpxo3htsz_.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpfqd8jaku/tmpxo3htsz_.template', '/tmp/tmpfqd8jaku/tmp0hzlm6bk.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 6 __main__.TestMkenums.test_empty_template 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpn3yevz_z 988s # rspfile: False 988s # /tmp/tmpn3yevz_z/tmpx9n5fkch.template: 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpn3yevz_z/tmpx9n5fkch.template'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s ok 7 __main__.TestMkenums.test_enum_name 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmptq4vi9gb 988s # rspfile: False 988s # /tmp/tmptq4vi9gb/tmphi69q3_m.h: 988s # typedef enum _SomeEnumIdentifier { 988s # ENUM_VALUE 988s # } SomeEnumIdentifier; 988s # 988s # /tmp/tmptq4vi9gb/tmpcsu1rg_3.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmptq4vi9gb/tmpcsu1rg_3.template', '/tmp/tmptq4vi9gb/tmphi69q3_m.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmptq4vi9gb/tmphi69q3_m.h 988s # basename: tmphi69q3_m.h 988s # enumeration-production 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE 988s # valuenick: value 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 8 __main__.TestMkenums.test_enum_private_public 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp1712zzvl 988s # rspfile: False 988s # /tmp/tmp1712zzvl/tmpozm9ayij.h: 988s # typedef enum { 988s # ENUM_VALUE_PUBLIC1, 988s # /*< private >*/ 988s # ENUM_VALUE_PRIVATE, 988s # } SomeEnumA 988s # 988s # /tmp/tmp1712zzvl/tmphq4kr4ce.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp1712zzvl/tmphq4kr4ce.template', '/tmp/tmp1712zzvl/tmpozm9ayij.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmp1712zzvl/tmpozm9ayij.h 988s # basename: tmpozm9ayij.h 988s # enumeration-production 988s # EnumName: SomeEnumA 988s # enum_name: some_enum_a 988s # ENUMNAME: SOME_ENUM_A 988s # ENUMSHORT: ENUM_A 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumA 988s # enum_name: some_enum_a 988s # ENUMNAME: SOME_ENUM_A 988s # ENUMSHORT: ENUM_A 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_PUBLIC1 988s # valuenick: public1 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumA 988s # enum_name: some_enum_a 988s # ENUMNAME: SOME_ENUM_A 988s # ENUMSHORT: ENUM_A 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s # 988s # /tmp/tmp1712zzvl/tmp922xast2.h: 988s # typedef enum { 988s # /*< private >*/ 988s # ENUM_VALUE_PRIVATE, 988s # /*< public >*/ 988s # ENUM_VALUE_PUBLIC2, 988s # } SomeEnumB; 988s # 988s # /tmp/tmp1712zzvl/tmpmabzvy1q.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp1712zzvl/tmpmabzvy1q.template', '/tmp/tmp1712zzvl/tmp922xast2.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmp1712zzvl/tmp922xast2.h 988s # basename: tmp922xast2.h 988s # enumeration-production 988s # EnumName: SomeEnumB 988s # enum_name: some_enum_b 988s # ENUMNAME: SOME_ENUM_B 988s # ENUMSHORT: ENUM_B 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumB 988s # enum_name: some_enum_b 988s # ENUMNAME: SOME_ENUM_B 988s # ENUMSHORT: ENUM_B 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_PUBLIC2 988s # valuenick: public2 988s # valuenum: 1 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumB 988s # enum_name: some_enum_b 988s # ENUMNAME: SOME_ENUM_B 988s # ENUMSHORT: ENUM_B 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpeu8fkrqn 988s # rspfile: False 988s # /tmp/tmpeu8fkrqn/tmpz0wb1yuu.h: 988s # typedef enum { 988s # /*< private >*/ 988s # ENUM_VALUE_PRIVATE = 5, 988s # /*< public >*/ 988s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 988s # } TestSymbolicEnum; 988s # 988s # /tmp/tmpeu8fkrqn/tmpo6fubnq7.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpeu8fkrqn/tmpo6fubnq7.template', '/tmp/tmpeu8fkrqn/tmpz0wb1yuu.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpeu8fkrqn/tmpz0wb1yuu.h 988s # basename: tmpz0wb1yuu.h 988s # enumeration-production 988s # EnumName: TestSymbolicEnum 988s # enum_name: test_symbolic_enum 988s # ENUMNAME: TEST_SYMBOLIC_ENUM 988s # ENUMSHORT: SYMBOLIC_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: TestSymbolicEnum 988s # enum_name: test_symbolic_enum 988s # ENUMNAME: TEST_SYMBOLIC_ENUM 988s # ENUMSHORT: SYMBOLIC_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_PUBLIC 988s # valuenick: public 988s # valuenum: 7 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: TestSymbolicEnum 988s # enum_name: test_symbolic_enum 988s # ENUMNAME: TEST_SYMBOLIC_ENUM 988s # ENUMSHORT: SYMBOLIC_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmps73_60ok 988s # rspfile: False 988s # /tmp/tmps73_60ok/tmpr39s7ely.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-tail ***/ 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmps73_60ok/tmpr39s7ely.template'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # filename: @filename@ 988s # basename: @basename@ 988s # file-tail 988s # filename: @filename@ 988s # basename: @basename@ 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s # WARNING: @filename@ used in file-header section. 988s # WARNING: @basename@ used in file-header section. 988s # WARNING: @filename@ used in file-tail section. 988s # WARNING: @basename@ used in file-tail section. 988s ok 11 __main__.TestMkenums.test_help 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmppiciglyt 988s # rspfile: False 988s # Running: ['/usr/bin/glib-mkenums', '--help'] 988s # Return code: 0 988s # Output: 988s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 988s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 988s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 988s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 988s # [--comments COMMENT_TMPL] [--template TEMPLATE] 988s # [--output OUTPUT] [--version] 988s # [args ...] 988s # 988s # positional arguments: 988s # args One or more input files, or a single argument 988s # @rspfile_path pointing to a file that contains the 988s # actual arguments 988s # 988s # options: 988s # -h, --help show this help message and exit 988s # --identifier-prefix IDPREFIX 988s # Identifier prefix 988s # --symbol-prefix SYMPREFIX 988s # Symbol prefix 988s # --fhead FHEAD Output file header 988s # --ftail FTAIL Output file footer 988s # --fprod FPROD Put out TEXT every time a new input file is being 988s # processed. 988s # --eprod EPROD Per enum text, produced prior to value iterations 988s # --vhead VHEAD Value header, produced before iterating over enum 988s # values 988s # --vprod VPROD Value text, produced for each enum value. 988s # --vtail VTAIL Value tail, produced after iterating over enum values 988s # --comments COMMENT_TMPL 988s # Comment structure 988s # --template TEMPLATE Template file 988s # --output OUTPUT 988s # --version, -v Print version information 988s # 988s # Production text substitutions: 988s # @EnumName@ PrefixTheXEnum 988s # @enum_name@ prefix_the_xenum 988s # @ENUMNAME@ PREFIX_THE_XENUM 988s # @ENUMSHORT@ THE_XENUM 988s # @ENUMPREFIX@ PREFIX 988s # @enumsince@ the user-provided since value given 988s # @VALUENAME@ PREFIX_THE_XVALUE 988s # @valuenick@ the-xvalue 988s # @valuenum@ the integer value (limited support, Since: 2.26) 988s # @type@ either enum or flags 988s # @Type@ either Enum or Flags 988s # @TYPE@ either ENUM or FLAGS 988s # @filename@ name of current input file 988s # @basename@ base name of the current input file (Since: 2.22) 988s # Error: 988s ok 12 __main__.TestMkenums.test_no_args 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp4er7k5p2 988s # rspfile: False 988s # Running: ['/usr/bin/glib-mkenums'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s ok 13 __main__.TestMkenums.test_no_headers 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpeef26k6e 988s # rspfile: False 988s # /tmp/tmpeef26k6e/tmp__qg90p8.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpeef26k6e/tmp__qg90p8.template'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 14 __main__.TestMkenums.test_no_nick 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpvuxfn6ah 988s # rspfile: False 988s # /tmp/tmpvuxfn6ah/tmpa0p95qgg.h: 988s # typedef enum { 988s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 988s # } GeglSamplerType; 988s # 988s # /tmp/tmpvuxfn6ah/tmp64x5h51l.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvuxfn6ah/tmp64x5h51l.template', '/tmp/tmpvuxfn6ah/tmpa0p95qgg.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpvuxfn6ah/tmpa0p95qgg.h 988s # basename: tmpa0p95qgg.h 988s # enumeration-production 988s # EnumName: GeglSamplerType 988s # enum_name: gegl_sampler_type 988s # ENUMNAME: GEGL_SAMPLER_TYPE 988s # ENUMSHORT: SAMPLER_TYPE 988s # ENUMPREFIX: GEGL 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: GeglSamplerType 988s # enum_name: gegl_sampler_type 988s # ENUMNAME: GEGL_SAMPLER_TYPE 988s # ENUMSHORT: SAMPLER_TYPE 988s # ENUMPREFIX: GEGL 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: GEGL_SAMPLER_NEAREST 988s # valuenick: nearest 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: GeglSamplerType 988s # enum_name: gegl_sampler_type 988s # ENUMNAME: GEGL_SAMPLER_TYPE 988s # ENUMSHORT: SAMPLER_TYPE 988s # ENUMPREFIX: GEGL 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 15 __main__.TestMkenums.test_non_utf8_encoding 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmphpikdnp5 988s # rspfile: False 988s # /tmp/tmphpikdnp5/tmpjd6fhlh7.h: 988s # /* Copyright © La Peña */ 988s # typedef enum { 988s # ENUM_VALUE 988s # } SomeEnumIdentifier; 988s # 988s # /tmp/tmphpikdnp5/tmpqjazidht.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmphpikdnp5/tmpqjazidht.template', '/tmp/tmphpikdnp5/tmpjd6fhlh7.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmphpikdnp5/tmpjd6fhlh7.h 988s # basename: tmpjd6fhlh7.h 988s # enumeration-production 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE 988s # valuenick: value 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 988s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 988s ok 16 __main__.TestMkenums.test_reproducible 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp_3jizfwf 988s # rspfile: False 988s # /tmp/tmp_3jizfwf/tmp4t5vd9ck.template: template 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_3jizfwf/tmp4t5vd9ck.template', '/tmp/tmp_3jizfwf/tmp4nm58bfv1.h', '/tmp/tmp_3jizfwf/tmp_xxj1kg62.h'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s # 988s # /tmp/tmp_3jizfwf/tmpdlxfgvzl.template: template 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp_3jizfwf/tmpdlxfgvzl.template', '/tmp/tmp_3jizfwf/tmp_xxj1kg62.h', '/tmp/tmp_3jizfwf/tmp4nm58bfv1.h'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s ok 17 __main__.TestMkenums.test_since 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpzxctf0ul 988s # rspfile: False 988s # /tmp/tmpzxctf0ul/tmpjrn2trax.h: 988s # typedef enum { /*< since=1.0 >*/ 988s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 988s # } QmiWmsMessageProtocol; 988s # 988s # /tmp/tmpzxctf0ul/tmp7rv61omm.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpzxctf0ul/tmp7rv61omm.template', '/tmp/tmpzxctf0ul/tmpjrn2trax.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpzxctf0ul/tmpjrn2trax.h 988s # basename: tmpjrn2trax.h 988s # enumeration-production 988s # EnumName: QmiWmsMessageProtocol 988s # enum_name: qmi_wms_message_protocol 988s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 988s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 988s # ENUMPREFIX: QMI 988s # enumsince: 1.0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: QmiWmsMessageProtocol 988s # enum_name: qmi_wms_message_protocol 988s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 988s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 988s # ENUMPREFIX: QMI 988s # enumsince: 1.0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 988s # valuenick: cdma 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: QmiWmsMessageProtocol 988s # enum_name: qmi_wms_message_protocol 988s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 988s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 988s # ENUMPREFIX: QMI 988s # enumsince: 1.0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 18 __main__.TestMkenums.test_with_double_quotes 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpe27xskeb 988s # rspfile: False 988s # /tmp/tmpe27xskeb/tmphmt239w6.h: 988s # typedef enum { 988s # FOO_VALUE /*< nick="eek, a comma" >*/ 988s # } Foo; 988s # 988s # /tmp/tmpe27xskeb/tmp3h1v4bcg.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpe27xskeb/tmp3h1v4bcg.template', '/tmp/tmpe27xskeb/tmphmt239w6.h'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpe27xskeb/tmphmt239w6.h 988s # basename: tmphmt239w6.h 988s # enumeration-production 988s # EnumName: Foo 988s # enum_name: foo_ 988s # ENUMNAME: FOO_ 988s # ENUMSHORT: 988s # ENUMPREFIX: FOO 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: Foo 988s # enum_name: foo_ 988s # ENUMNAME: FOO_ 988s # ENUMSHORT: 988s # ENUMPREFIX: FOO 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: FOO_VALUE 988s # valuenick: eek, a comma 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: Foo 988s # enum_name: foo_ 988s # ENUMNAME: FOO_ 988s # ENUMSHORT: 988s # ENUMPREFIX: FOO 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 19 __main__.TestRspMkenums.test_available_in 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpxbpodj03 988s # rspfile: True 988s # /tmp/tmpxbpodj03/tmph6qwz05i.h: 988s # typedef enum { 988s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 988s # } GDBusServerFlags; 988s # 988s # /tmp/tmpxbpodj03/tmpae9tqims.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpxbpodj03/tmpae9tqims.template /tmp/tmpxbpodj03/tmph6qwz05i.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpxbpodj03/tmp5yaxpw4m'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpxbpodj03/tmph6qwz05i.h 988s # basename: tmph6qwz05i.h 988s # enumeration-production 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-header 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-production 988s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 988s # valuenick: user 988s # valuenum: 4 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-tail 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpasrtjbsc 988s # rspfile: True 988s # /tmp/tmpasrtjbsc/tmpiqdtixux.h: 988s # typedef enum { 988s # ENUM_VALUE_WITH_COMMA = ',', 988s # } TestCommaEnum; 988s # 988s # /tmp/tmpasrtjbsc/tmpdu20cd12.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpasrtjbsc/tmpdu20cd12.template /tmp/tmpasrtjbsc/tmpiqdtixux.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpasrtjbsc/tmpbodvdus3'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpasrtjbsc/tmpiqdtixux.h 988s # basename: tmpiqdtixux.h 988s # enumeration-production 988s # EnumName: TestCommaEnum 988s # enum_name: test_comma_enum 988s # ENUMNAME: TEST_COMMA_ENUM 988s # ENUMSHORT: COMMA_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: TestCommaEnum 988s # enum_name: test_comma_enum 988s # ENUMNAME: TEST_COMMA_ENUM 988s # ENUMSHORT: COMMA_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_WITH_COMMA 988s # valuenick: comma 988s # valuenum: 44 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: TestCommaEnum 988s # enum_name: test_comma_enum 988s # ENUMNAME: TEST_COMMA_ENUM 988s # ENUMSHORT: COMMA_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 21 __main__.TestRspMkenums.test_deprecated_in 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp9fqi47s8 988s # rspfile: True 988s # /tmp/tmp9fqi47s8/tmptm2yfe53.h: 988s # typedef enum { 988s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 988s # } GDBusServerFlags; 988s # 988s # /tmp/tmp9fqi47s8/tmphq4hq5gs.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmp9fqi47s8/tmphq4hq5gs.template /tmp/tmp9fqi47s8/tmptm2yfe53.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9fqi47s8/tmpbiw0rro_'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmp9fqi47s8/tmptm2yfe53.h 988s # basename: tmptm2yfe53.h 988s # enumeration-production 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-header 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-production 988s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 988s # valuenick: user 988s # valuenum: 4 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-tail 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpl31tu0wp 988s # rspfile: True 988s # /tmp/tmpl31tu0wp/tmpfctj_8rq.h: 988s # typedef enum { 988s # 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) 988s # } GDBusServerFlags; 988s # 988s # /tmp/tmpl31tu0wp/tmpaz5py0hr.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpl31tu0wp/tmpaz5py0hr.template /tmp/tmpl31tu0wp/tmpfctj_8rq.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpl31tu0wp/tmplwec_wci'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpl31tu0wp/tmpfctj_8rq.h 988s # basename: tmpfctj_8rq.h 988s # enumeration-production 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-header 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-production 988s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 988s # valuenick: user 988s # valuenum: 4 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # value-tail 988s # EnumName: GDBusServerFlags 988s # enum_name: g_dbus_server_flags 988s # ENUMNAME: G_DBUS_SERVER_FLAGS 988s # ENUMSHORT: DBUS_SERVER_FLAGS 988s # ENUMPREFIX: G 988s # enumsince: 988s # type: flags 988s # Type: Flags 988s # TYPE: FLAGS 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 23 __main__.TestRspMkenums.test_empty_header 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp2f49ctae 988s # rspfile: True 988s # /tmp/tmp2f49ctae/tmppyusqy4q.h: 988s # /tmp/tmp2f49ctae/tmpkoaqgl1e.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmp2f49ctae/tmpkoaqgl1e.template /tmp/tmp2f49ctae/tmppyusqy4q.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp2f49ctae/tmpehx8edjp'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 24 __main__.TestRspMkenums.test_empty_template 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp_9huj61u 988s # rspfile: True 988s # /tmp/tmp_9huj61u/tmpbfzd1n7f.template: 988s # Response file contains: --template /tmp/tmp_9huj61u/tmpbfzd1n7f.template 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_9huj61u/tmpus1prs2k'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s ok 25 __main__.TestRspMkenums.test_enum_name 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpcvfuu9n7 988s # rspfile: True 988s # /tmp/tmpcvfuu9n7/tmpnm7as8h6.h: 988s # typedef enum _SomeEnumIdentifier { 988s # ENUM_VALUE 988s # } SomeEnumIdentifier; 988s # 988s # /tmp/tmpcvfuu9n7/tmpnhh0k_sq.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpcvfuu9n7/tmpnhh0k_sq.template /tmp/tmpcvfuu9n7/tmpnm7as8h6.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpcvfuu9n7/tmpg_0_iqba'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpcvfuu9n7/tmpnm7as8h6.h 988s # basename: tmpnm7as8h6.h 988s # enumeration-production 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE 988s # valuenick: value 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 26 __main__.TestRspMkenums.test_enum_private_public 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp8_lb34a9 988s # rspfile: True 988s # /tmp/tmp8_lb34a9/tmpq_u9hqi6.h: 988s # typedef enum { 988s # ENUM_VALUE_PUBLIC1, 988s # /*< private >*/ 988s # ENUM_VALUE_PRIVATE, 988s # } SomeEnumA 988s # 988s # /tmp/tmp8_lb34a9/tmppte2l_8q.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmp8_lb34a9/tmppte2l_8q.template /tmp/tmp8_lb34a9/tmpq_u9hqi6.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8_lb34a9/tmps28u35h2'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmp8_lb34a9/tmpq_u9hqi6.h 988s # basename: tmpq_u9hqi6.h 988s # enumeration-production 988s # EnumName: SomeEnumA 988s # enum_name: some_enum_a 988s # ENUMNAME: SOME_ENUM_A 988s # ENUMSHORT: ENUM_A 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumA 988s # enum_name: some_enum_a 988s # ENUMNAME: SOME_ENUM_A 988s # ENUMSHORT: ENUM_A 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_PUBLIC1 988s # valuenick: public1 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumA 988s # enum_name: some_enum_a 988s # ENUMNAME: SOME_ENUM_A 988s # ENUMSHORT: ENUM_A 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s # 988s # /tmp/tmp8_lb34a9/tmp367wnkiu.h: 988s # typedef enum { 988s # /*< private >*/ 988s # ENUM_VALUE_PRIVATE, 988s # /*< public >*/ 988s # ENUM_VALUE_PUBLIC2, 988s # } SomeEnumB; 988s # 988s # /tmp/tmp8_lb34a9/tmpzzoi63y9.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmp8_lb34a9/tmpzzoi63y9.template /tmp/tmp8_lb34a9/tmp367wnkiu.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp8_lb34a9/tmp4wzrtymq'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmp8_lb34a9/tmp367wnkiu.h 988s # basename: tmp367wnkiu.h 988s # enumeration-production 988s # EnumName: SomeEnumB 988s # enum_name: some_enum_b 988s # ENUMNAME: SOME_ENUM_B 988s # ENUMSHORT: ENUM_B 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumB 988s # enum_name: some_enum_b 988s # ENUMNAME: SOME_ENUM_B 988s # ENUMSHORT: ENUM_B 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_PUBLIC2 988s # valuenick: public2 988s # valuenum: 1 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumB 988s # enum_name: some_enum_b 988s # ENUMNAME: SOME_ENUM_B 988s # ENUMSHORT: ENUM_B 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpwybu7rng 988s # rspfile: True 988s # /tmp/tmpwybu7rng/tmp4io0ue_a.h: 988s # typedef enum { 988s # /*< private >*/ 988s # ENUM_VALUE_PRIVATE = 5, 988s # /*< public >*/ 988s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 988s # } TestSymbolicEnum; 988s # 988s # /tmp/tmpwybu7rng/tmp2uvmxs3v.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpwybu7rng/tmp2uvmxs3v.template /tmp/tmpwybu7rng/tmp4io0ue_a.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpwybu7rng/tmp714zc70g'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpwybu7rng/tmp4io0ue_a.h 988s # basename: tmp4io0ue_a.h 988s # enumeration-production 988s # EnumName: TestSymbolicEnum 988s # enum_name: test_symbolic_enum 988s # ENUMNAME: TEST_SYMBOLIC_ENUM 988s # ENUMSHORT: SYMBOLIC_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: TestSymbolicEnum 988s # enum_name: test_symbolic_enum 988s # ENUMNAME: TEST_SYMBOLIC_ENUM 988s # ENUMSHORT: SYMBOLIC_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE_PUBLIC 988s # valuenick: public 988s # valuenum: 7 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: TestSymbolicEnum 988s # enum_name: test_symbolic_enum 988s # ENUMNAME: TEST_SYMBOLIC_ENUM 988s # ENUMSHORT: SYMBOLIC_ENUM 988s # ENUMPREFIX: TEST 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpg0igoh22 988s # rspfile: True 988s # /tmp/tmpg0igoh22/tmpsbu_wqca.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-tail ***/ 988s # Response file contains: --template /tmp/tmpg0igoh22/tmpsbu_wqca.template 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpg0igoh22/tmpjqo5o9bq'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # filename: @filename@ 988s # basename: @basename@ 988s # file-tail 988s # filename: @filename@ 988s # basename: @basename@ 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s # WARNING: @filename@ used in file-header section. 988s # WARNING: @basename@ used in file-header section. 988s # WARNING: @filename@ used in file-tail section. 988s # WARNING: @basename@ used in file-tail section. 988s ok 29 __main__.TestRspMkenums.test_help 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp9blouvbw 988s # rspfile: True 988s # Response file contains: --help 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9blouvbw/tmp3u9q95_g'] 988s # Return code: 0 988s # Output: 988s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 988s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 988s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 988s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 988s # [--comments COMMENT_TMPL] [--template TEMPLATE] 988s # [--output OUTPUT] [--version] 988s # [args ...] 988s # 988s # positional arguments: 988s # args One or more input files, or a single argument 988s # @rspfile_path pointing to a file that contains the 988s # actual arguments 988s # 988s # options: 988s # -h, --help show this help message and exit 988s # --identifier-prefix IDPREFIX 988s # Identifier prefix 988s # --symbol-prefix SYMPREFIX 988s # Symbol prefix 988s # --fhead FHEAD Output file header 988s # --ftail FTAIL Output file footer 988s # --fprod FPROD Put out TEXT every time a new input file is being 988s # processed. 988s # --eprod EPROD Per enum text, produced prior to value iterations 988s # --vhead VHEAD Value header, produced before iterating over enum 988s # values 988s # --vprod VPROD Value text, produced for each enum value. 988s # --vtail VTAIL Value tail, produced after iterating over enum values 988s # --comments COMMENT_TMPL 988s # Comment structure 988s # --template TEMPLATE Template file 988s # --output OUTPUT 988s # --version, -v Print version information 988s # 988s # Production text substitutions: 988s # @EnumName@ PrefixTheXEnum 988s # @enum_name@ prefix_the_xenum 988s # @ENUMNAME@ PREFIX_THE_XENUM 988s # @ENUMSHORT@ THE_XENUM 988s # @ENUMPREFIX@ PREFIX 988s # @enumsince@ the user-provided since value given 988s # @VALUENAME@ PREFIX_THE_XVALUE 988s # @valuenick@ the-xvalue 988s # @valuenum@ the integer value (limited support, Since: 2.26) 988s # @type@ either enum or flags 988s # @Type@ either Enum or Flags 988s # @TYPE@ either ENUM or FLAGS 988s # @filename@ name of current input file 988s # @basename@ base name of the current input file (Since: 2.22) 988s # Error: 988s ok 30 __main__.TestRspMkenums.test_no_args 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp9nx4y793 988s # rspfile: True 988s # Response file contains: 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp9nx4y793/tmpjvgbaexr'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s ok 31 __main__.TestRspMkenums.test_no_headers 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpfwv890cr 988s # rspfile: True 988s # /tmp/tmpfwv890cr/tmpm08iuba7.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpfwv890cr/tmpm08iuba7.template 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpfwv890cr/tmpxxuok256'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 32 __main__.TestRspMkenums.test_no_nick 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmppl2kqjq_ 988s # rspfile: True 988s # /tmp/tmppl2kqjq_/tmpvdx7mx80.h: 988s # typedef enum { 988s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 988s # } GeglSamplerType; 988s # 988s # /tmp/tmppl2kqjq_/tmph8irr1v1.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmppl2kqjq_/tmph8irr1v1.template /tmp/tmppl2kqjq_/tmpvdx7mx80.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppl2kqjq_/tmpnlwi8gt3'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmppl2kqjq_/tmpvdx7mx80.h 988s # basename: tmpvdx7mx80.h 988s # enumeration-production 988s # EnumName: GeglSamplerType 988s # enum_name: gegl_sampler_type 988s # ENUMNAME: GEGL_SAMPLER_TYPE 988s # ENUMSHORT: SAMPLER_TYPE 988s # ENUMPREFIX: GEGL 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: GeglSamplerType 988s # enum_name: gegl_sampler_type 988s # ENUMNAME: GEGL_SAMPLER_TYPE 988s # ENUMSHORT: SAMPLER_TYPE 988s # ENUMPREFIX: GEGL 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: GEGL_SAMPLER_NEAREST 988s # valuenick: nearest 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: GeglSamplerType 988s # enum_name: gegl_sampler_type 988s # ENUMNAME: GEGL_SAMPLER_TYPE 988s # ENUMSHORT: SAMPLER_TYPE 988s # ENUMPREFIX: GEGL 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpkwv42yp9 988s # rspfile: True 988s # /tmp/tmpkwv42yp9/tmpzf52z54y.h: 988s # /* Copyright © La Peña */ 988s # typedef enum { 988s # ENUM_VALUE 988s # } SomeEnumIdentifier; 988s # 988s # /tmp/tmpkwv42yp9/tmpxmmvc_rp.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpkwv42yp9/tmpxmmvc_rp.template /tmp/tmpkwv42yp9/tmpzf52z54y.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpkwv42yp9/tmppne9qixb'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpkwv42yp9/tmpzf52z54y.h 988s # basename: tmpzf52z54y.h 988s # enumeration-production 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: ENUM_VALUE 988s # valuenick: value 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: SomeEnumIdentifier 988s # enum_name: some_enum_identifier 988s # ENUMNAME: SOME_ENUM_IDENTIFIER 988s # ENUMSHORT: ENUM_IDENTIFIER 988s # ENUMPREFIX: SOME 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 988s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 988s ok 34 __main__.TestRspMkenums.test_reproducible 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmp_gexdews 988s # rspfile: True 988s # /tmp/tmp_gexdews/tmpfz5jakim.template: template 988s # Response file contains: --template /tmp/tmp_gexdews/tmpfz5jakim.template /tmp/tmp_gexdews/tmp4ioia8111.h /tmp/tmp_gexdews/tmputcw0qg02.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_gexdews/tmpd8931w5r'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s # 988s # /tmp/tmp_gexdews/tmp4ihloor1.template: template 988s # Response file contains: --template /tmp/tmp_gexdews/tmp4ihloor1.template /tmp/tmp_gexdews/tmputcw0qg02.h /tmp/tmp_gexdews/tmp4ioia8111.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmp_gexdews/tmpqqxeep2p'] 988s # Return code: 0 988s # Output: 988s # /* 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. */ 988s # 988s # 988s # /* Generated data ends here */ 988s # Error: 988s ok 35 __main__.TestRspMkenums.test_since 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmppwvnfka6 988s # rspfile: True 988s # /tmp/tmppwvnfka6/tmpmanvqbbt.h: 988s # typedef enum { /*< since=1.0 >*/ 988s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 988s # } QmiWmsMessageProtocol; 988s # 988s # /tmp/tmppwvnfka6/tmpv435t1uj.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmppwvnfka6/tmpv435t1uj.template /tmp/tmppwvnfka6/tmpmanvqbbt.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppwvnfka6/tmpvfyjvof4'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmppwvnfka6/tmpmanvqbbt.h 988s # basename: tmpmanvqbbt.h 988s # enumeration-production 988s # EnumName: QmiWmsMessageProtocol 988s # enum_name: qmi_wms_message_protocol 988s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 988s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 988s # ENUMPREFIX: QMI 988s # enumsince: 1.0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: QmiWmsMessageProtocol 988s # enum_name: qmi_wms_message_protocol 988s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 988s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 988s # ENUMPREFIX: QMI 988s # enumsince: 1.0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 988s # valuenick: cdma 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: QmiWmsMessageProtocol 988s # enum_name: qmi_wms_message_protocol 988s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 988s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 988s # ENUMPREFIX: QMI 988s # enumsince: 1.0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s ok 36 __main__.TestRspMkenums.test_with_double_quotes 988s # glib-mkenums: /usr/bin/glib-mkenums 988s # tmpdir: /tmp/tmpqysngslu 988s # rspfile: True 988s # /tmp/tmpqysngslu/tmp8s3z16xe.h: 988s # typedef enum { 988s # FOO_VALUE /*< nick="eek, a comma" >*/ 988s # } Foo; 988s # 988s # /tmp/tmpqysngslu/tmpbhqw_5y3.template: 988s # /*** BEGIN file-header ***/ 988s # file-header 988s # /*** END file-header ***/ 988s # 988s # /*** BEGIN file-production ***/ 988s # file-production 988s # filename: @filename@ 988s # basename: @basename@ 988s # /*** END file-production ***/ 988s # 988s # /*** BEGIN enumeration-production ***/ 988s # enumeration-production 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END enumeration-production ***/ 988s # 988s # /*** BEGIN value-header ***/ 988s # value-header 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-header ***/ 988s # 988s # /*** BEGIN value-production ***/ 988s # value-production 988s # VALUENAME: @VALUENAME@ 988s # valuenick: @valuenick@ 988s # valuenum: @valuenum@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-production ***/ 988s # 988s # /*** BEGIN value-tail ***/ 988s # value-tail 988s # EnumName: @EnumName@ 988s # enum_name: @enum_name@ 988s # ENUMNAME: @ENUMNAME@ 988s # ENUMSHORT: @ENUMSHORT@ 988s # ENUMPREFIX: @ENUMPREFIX@ 988s # enumsince: @enumsince@ 988s # type: @type@ 988s # Type: @Type@ 988s # TYPE: @TYPE@ 988s # /*** END value-tail ***/ 988s # 988s # /*** BEGIN comment ***/ 988s # comment 988s # comment: @comment@ 988s # /*** END comment ***/ 988s # 988s # /*** BEGIN file-tail ***/ 988s # file-tail 988s # /*** END file-tail ***/ 988s # 988s # Response file contains: --template /tmp/tmpqysngslu/tmpbhqw_5y3.template /tmp/tmpqysngslu/tmp8s3z16xe.h 988s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqysngslu/tmpw6wvo_2_'] 988s # Return code: 0 988s # Output: 988s # comment 988s # 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. 988s # 988s # 988s # file-header 988s # file-production 988s # filename: /tmp/tmpqysngslu/tmp8s3z16xe.h 988s # basename: tmp8s3z16xe.h 988s # enumeration-production 988s # EnumName: Foo 988s # enum_name: foo_ 988s # ENUMNAME: FOO_ 988s # ENUMSHORT: 988s # ENUMPREFIX: FOO 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-header 988s # EnumName: Foo 988s # enum_name: foo_ 988s # ENUMNAME: FOO_ 988s # ENUMSHORT: 988s # ENUMPREFIX: FOO 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-production 988s # VALUENAME: FOO_VALUE 988s # valuenick: eek, a comma 988s # valuenum: 0 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # value-tail 988s # EnumName: Foo 988s # enum_name: foo_ 988s # ENUMNAME: FOO_ 988s # ENUMSHORT: 988s # ENUMPREFIX: FOO 988s # enumsince: 988s # type: enum 988s # Type: Enum 988s # TYPE: ENUM 988s # file-tail 988s # 988s # comment 988s # comment: Generated data ends here 988s # Error: 988s 1..36 988s TAP version 14 988s # random seed: R02S0cadf72c6be85bb5646bdcaef0a2a610 988s 1..2 988s # Start of uuid tests 988s ok 1 /uuid/string 988s ok 2 /uuid/random 988s # End of uuid tests 988s TAP version 14 988s # random seed: R02S45aa59f8a569ce0041470eee2f9a10ef 988s 1..10 988s # Start of gdbus tests 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/validate-names/.dirs/runtime 988s ok 1 /gdbus/validate-names 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-own-name/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 2 /gdbus/bus-own-name 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 3 /gdbus/bus-watch-name 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 4 /gdbus/bus-watch-name-auto-start 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-auto-start-service-exist/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s dbus-daemon[2194]: [session uid=1000 pid=2194 pidfd=4] Activating service name='org.gtk.GDBus.FakeService' requested by ':1.0' (uid=1000 pid=2185 comm="/usr/libexec/installed-tests/glib/gdbus-names" label="unconfined") 988s # Acquired a message bus connection 988s dbus-daemon[2194]: [session uid=1000 pid=2194 pidfd=4] Successfully activated service 'org.gtk.GDBus.FakeService' 988s # Acquired the name org.gtk.GDBus.FakeService 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 5 /gdbus/bus-watch-name-auto-start-service-exist 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 6 /gdbus/bus-watch-name-closures 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-name-closures-auto-start/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 7 /gdbus/bus-watch-name-closures-auto-start 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-watch-different-context/.dirs/runtime 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 8 /gdbus/bus-watch-different-context 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/bus-unwatch-early/.dirs/runtime 988s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/604 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 988s ok 9 /gdbus/bus-unwatch-early 988s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/home 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/cache 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/system-config1:/tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/system-config2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/config 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/system-data1:/tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/system-data2 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/data 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/state 988s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-names_LCN352/gdbus/escape-object-path/.dirs/runtime 988s ok 10 /gdbus/escape-object-path 988s # End of gdbus tests 988s TAP version 14 988s # random seed: R02S7d8a15cfd1fc1a6e70c08323ba4cc219 988s 1..6 988s # Start of icons tests 988s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 988s ok 1 /icons/to-string 988s ok 2 /icons/serialize 988s ok 3 /icons/themed 988s ok 4 /icons/emblemed 988s ok 5 /icons/file 988s ok 6 /icons/bytes 988s # End of icons tests 988s Running test "liststore-is-a" 988s # Executing: glib/performance-threaded.test 989s 7023 runs, min/avg/max = 0.139/0.142/0.536 ms 989s Running test "liststore-interface-peek" 990s 8852 runs, min/avg/max = 0.110/0.112/0.508 ms 990s Running test "liststore-interface-peek-same" 991s ok - glib/performance-threaded.test 991s # Running test: glib/closure.test 991s 8850 runs, min/avg/max = 0.110/0.112/0.584 ms 991s TAP version 14 991s # random seed: R02Sd333b6848bddb65b8e3fda4f76e91c53 991s 1..6 991s # Start of closure tests 991s ok 1 /closure/idle 991s ok - glib/closure.test 991s # Running test: glib/utils-c-89.test 991s ok 2 /closure/timeout 991s ok 3 /closure/iochannel 991s ok 4 /closure/child 991s ok 5 /closure/fd 991s ok 6 /closure/signal 991s # End of closure tests 991s TAP version 14 991s # random seed: R02S5a0710ae7045e3cb829f025a897be71a 991s 1..41 991s # Start of utils tests 991s ok 1 /utils/language-names 991s ok 2 /utils/locale-variants 991s ok 3 /utils/version 991s ok 4 /utils/appname 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 991s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 991s ok 5 /utils/prgname-thread-safety 991s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 991s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 991s ok 6 /utils/tmpdir 991s ok 7 /utils/basic_bits 991s ok 8 /utils/bits 991s ok 9 /utils/swap 991s ok - glib/utils-c-89.test 991s # Running test: glib/autoptr.test 991s ok - glib/autoptr.test 991s # Running test: glib/module-test-plugin.test 991s ok - glib/module-test-plugin.test 991s # Running test: glib/hostutils.test 991s ok - glib/hostutils.test 991s # Running test: glib/hook.test 991s ok - glib/hook.test 991s # Running test: glib/init.test 991s ok - glib/init.test 991s # Running test: glib/repository-search-paths.test 991s ok - glib/repository-search-paths.test 991s # Running test: glib/gdbus-connection-flush.test 991s ok 10 /utils/find-program 991s ok 11 /utils/find-program-for-path 991s ok 12 /utils/debug 991s ok 13 /utils/codeset 991s ok 14 /utils/codeset2 991s ok 15 /utils/console-charset 991s ok 16 /utils/gettext 991s ok 17 /utils/username 991s ok 18 /utils/realname 991s ok 19 /utils/hostname 991s ok 20 /utils/xdgdirs 991s ok 21 /utils/specialdir 991s # NAME: Ubuntu 991s ok 22 /utils/os-info 991s ok 23 /utils/clear-pointer 991s ok 24 /utils/clear-pointer-cast 991s ok 25 /utils/take-pointer 991s ok 26 /utils/clear-source 991s ok 27 /utils/misc-mem 991s # /utils/aligned-mem summary: Aligned memory allocator 991s # Alignment must not be zero 991s # Alignment must be a power of two 991s # Alignment must be a multiple of sizeof(void*) 991s ok 28 /utils/aligned-mem 991s # /utils/free-sized summary: Check that g_free_sized() works 991s ok 29 /utils/free-sized 991s ok 30 /utils/nullify 991s ok 31 /utils/atexit 991s ok 32 /utils/check-setuid 991s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 991s ok 33 /utils/int-limits 991s ok 34 /utils/clear-list 991s ok 35 /utils/clear-slist 991s ok 36 /utils/steal-handle-id 991s # Start of specialdir tests 991s ok 37 /utils/specialdir/desktop 991s # End of specialdir tests 991s # Start of clear-pointer tests 991s ok 38 /utils/clear-pointer/side-effects 991s # End of clear-pointer tests 991s # Start of aligned-mem tests 991s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 991s ok 39 /utils/aligned-mem/alignment 991s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 991s ok 40 /utils/aligned-mem/zeroed 991s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 991s ok 41 /utils/aligned-mem/free-sized 991s # Start of subprocess tests 991s # End of subprocess tests 991s # End of aligned-mem tests 991s # End of utils tests 991s TAP version 14 991s # random seed: R02S8fcec1f405722fe902c377c1e11953f8 991s 1..6 991s # Start of autoptr tests 991s ok 1 /autoptr/autoptr 991s ok 2 /autoptr/autoptr_steal 991s ok 3 /autoptr/autolist 991s ok 4 /autoptr/autoslist 991s ok 5 /autoptr/autoqueue 991s ok 6 /autoptr/autoclass 991s # End of autoptr tests 991s TAP version 14 991s # random seed: R02S783ea9202a417e41e11224cee964c1e3 991s 1..3 991s # Start of module tests 991s ok 1 /module/basics 991s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 991s ok 2 /module/invalid-libtool-archive 991s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 991s ok 3 /module/local-binding 991s # End of module tests 991s TAP version 14 991s # random seed: R02Sc00420159e42f0a2245b1ec5c344f60d 991s 1..3 991s # Start of hostutils tests 991s ok 1 /hostutils/to_ascii 991s ok 2 /hostutils/to_unicode 991s ok 3 /hostutils/is_ip_addr 991s # End of hostutils tests 991s TAP version 14 991s # random seed: R02Sb2aee21d47e9fda529a290b1576cd57e 991s 1..2 991s # Start of hook tests 991s ok 1 /hook/basics 991s ok 2 /hook/corner-cases 991s # End of hook tests 991s TAP version 14 991s # random seed: R02Se9b5459724effe6ce1ade5487595be69 991s 1..2 991s # Start of thread tests 991s # Start of deprecated tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_I19B62/thread/deprecated/init/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_I19B62/thread/deprecated/init/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_I19B62/thread/deprecated/init/.dirs/runtime 991s ok 1 /thread/deprecated/init 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 991s ok - glib/gdbus-connection-flush.test 991s # Running test: glib/data-input-stream.test 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_I19B62/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 991s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 991s # End of deprecated tests 991s # End of thread tests 991s TAP version 14 991s # random seed: R02Sf7691c4105ec35b69f6fe5054fe90cb3 991s 1..4 991s # Start of repository tests 991s # Start of search-paths tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/default/.dirs/runtime 991s ok 1 /repository/search-paths/default 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_RM7B62/repository/search-paths/prepend/.dirs/runtime 991s ok 2 /repository/search-paths/prepend 991s # End of search-paths tests 991s # Start of library-paths tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/default/.dirs/runtime 991s ok 3 /repository/library-paths/default 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_RM7B62/repository/library-paths/prepend/.dirs/runtime 991s ok 4 /repository/library-paths/prepend 991s # End of library-paths tests 991s # End of repository tests 991s TAP version 14 991s # random seed: R02S87c81592f979efd9c9d00d8320fc8cc0 991s 1..2 991s # Start of gdbus tests 991s # Start of connection tests 991s # Start of flush tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/busy/.dirs/runtime 991s ok 1 /gdbus/connection/flush/busy 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_47PB62/gdbus/connection/flush/idle/.dirs/runtime 991s ok 2 /gdbus/connection/flush/idle 991s # End of flush tests 991s # End of connection tests 991s # End of gdbus tests 991s TAP version 14 991s # random seed: R02S925cc9788eb31568133cf516b68581e8 991s 1..10 991s # Start of data-input-stream tests 991s ok 1 /data-input-stream/basic 991s ok 2 /data-input-stream/read-lines-LF 991s ok 3 /data-input-stream/read-lines-LF-valid-utf8 991s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 991s ok 5 /data-input-stream/read-lines-CR 991s ok 6 /data-input-stream/read-lines-CR-LF 991s ok 7 /data-input-stream/read-lines-any 991s ok 8 /data-input-stream/read-until 991s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 991s # Test vector 1: {"key": "value"}? and ? 991s ok 9 /data-input-stream/read-upto 991s ok 10 /data-input-stream/read-int 991s # End of data-input-stream tests 991s ok - glib/data-input-stream.test 991s # Running test: glib/utils-isolated.test 991s TAP version 14 991s # random seed: R02S2fb3245948a1431065d41728acac703d 991s 1..11 991s # Start of utils-isolated tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/tmp-dir/.dirs/runtime 991s ok 1 /utils-isolated/tmp-dir 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/home-dir/.dirs/runtime 991s ok 2 /utils-isolated/home-dir 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-cache-dir/.dirs/runtime 991s ok 3 /utils-isolated/user-cache-dir 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-config-dirs/.dirs/runtime 991s ok 4 /utils-isolated/system-config-dirs 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-config-dir/.dirs/runtime 991s ok 5 /utils-isolated/user-config-dir 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/system-data-dirs/.dirs/runtime 991s ok 6 /utils-isolated/system-data-dirs 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-data-dir/.dirs/runtime 991s ok 7 /utils-isolated/user-data-dir 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-state-dir/.dirs/runtime 991s ok 8 /utils-isolated/user-state-dir 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/user-runtime-dir/.dirs/runtime 991s ok 9 /utils-isolated/user-runtime-dir 991s # Start of cleanup tests 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/runtime 991s Unable to clean up temporary directory /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 991s Unable to clean up temporary directory /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 991s Unable to clean up temporary directory /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/handles-errors: Directory not empty 991s ok 10 /utils-isolated/cleanup/handles-errors 991s ok - glib/utils-isolated.test 991s # Running test: glib/tls-database.test 991s ok - glib/tls-database.test 991s # Running test: glib/gi-compile-repository.py.test 991s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 991s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 991s Unable to clean up temporary directory /tmp/test_utils-isolated_XPNT52/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 991s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 991s # End of cleanup tests 991s # End of utils-isolated tests 991s TAP version 14 991s # random seed: R02S06c2b4e79ef240ee78ae2c8565e835ab 991s 1..1 991s # Start of tls-backend tests 991s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 991s ok 1 /tls-backend/set-default-database 991s # End of tls-backend tests 991s TAP version 13 991s ok 1 __main__.TestGICompileRepository.test_open_failure 991s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 991s # gi-compile-repository: /usr/bin/gi-compile-repository 991s # tmpdir: /tmp/tmp4f_so8me 991s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmp4f_so8me/invalid.typelib'] 991s # Return code: 1 991s # Output: 991s # 991s # Error: 991s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.girâ€: No such file or directory 991s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 991s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 991s # gi-compile-repository: /usr/bin/gi-compile-repository 991s # tmpdir: /tmp/tmpmbtois_m 991s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmpmbtois_m/GLib-2.typelib'] 991s # Return code: 0 991s # Output: 991s # 991s # Error: 991s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 991s # gi-compile-repository: /usr/bin/gi-compile-repository 991s # tmpdir: /tmp/tmpq07g74bl 991s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/arm-linux-gnueabihf/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 991s # Return code: 1 991s # Output: 991s # 991s # Error: 991s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 992s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 992s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 992s # gi-compile-repository: /usr/bin/gi-compile-repository 992s # tmpdir: /tmp/tmpf0bxm5oe 992s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpf0bxm5oe/GObject-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 992s # Return code: 0 992s # Output: 992s # 992s # Error: 992s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 992s # gi-compile-repository: /usr/bin/gi-compile-repository 992s # tmpdir: /tmp/tmp_ke4gtob 992s # 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/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 992s # Return code: 1 992s # Output: 992s # 992s # Error: 992s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 992s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 992s # gir path set to [PosixPath('/usr/lib/arm-linux-gnueabihf/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 992s # gi-compile-repository: /usr/bin/gi-compile-repository 992s # tmpdir: /tmp/tmph0j3j46z 992s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmph0j3j46z/Gio-2.typelib', '--includedir', '/usr/lib/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 992s # Return code: 0 992s # Output: 992s # 992s # Error: 999s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 999s # gi-compile-repository: /usr/bin/gi-compile-repository 999s # tmpdir: /tmp/tmpgfxljks1 999s # 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/arm-linux-gnueabihf/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 999s # Return code: 1 999s # Output: 999s # 999s # Error: 999s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 999s 1..7 999s ok - glib/gi-compile-repository.py.test 999s # Running test: glib/properties-refcount2.test 999s # Executing: glib/properties-refcount2.test 999s ok - glib/properties-refcount2.test 999s # Running test: glib/tls-certificate.test 999s ok - glib/tls-certificate.test 999s # Running test: glib/object-info.test 999s ok - glib/object-info.test 999s # Running test: glib/enums.test 999s ok - glib/enums.test 999s # Running test: glib/onceinit.test 999s ok - glib/onceinit.test 999s # Running test: glib/application-command-line.test 999s ok - glib/application-command-line.test 999s # Running test: glib/gapplication.test 999s ok - glib/gapplication.test 999s # Running test: glib/signal-handler.test 999s ok - glib/signal-handler.test 999s # Running test: glib/gobject-private.test 999s ok - glib/gobject-private.test 999s # Running test: glib/tls-bindings.test 999s ok - glib/tls-bindings.test 999s # Running test: glib/buffered-output-stream.test 999s ok - glib/buffered-output-stream.test 999s # Running test: glib/testing-nonfatal.test 999s ok - glib/testing-nonfatal.test 999s # Running test: glib/g-file-info-filesystem-readonly.test 999s ok - glib/g-file-info-filesystem-readonly.test 999s # Running test: glib/atomic-c-99.test 999s ok - glib/atomic-c-99.test 999s # Running test: glib/utils-c-17.test 999s ok - glib/utils-c-17.test 999s # Running test: glib/unix-mounts.test 999s ok - glib/unix-mounts.test 999s # Running test: glib/mappedfile.test 999s ok - glib/mappedfile.test 999s # Running test: glib/gdbus-addresses.test 999s ok - glib/gdbus-addresses.test 999s # Running test: glib/filter-streams.test 999s ok - glib/filter-streams.test 999s # Running test: glib/private.test 999s ok - glib/private.test 999s # Running test: glib/value.test 999s ok - glib/value.test 999s # Running test: glib/messages-low-memory.py.test 999s ok - glib/messages-low-memory.py.test 999s # Running test: glib/defaultiface.test 999s ok - glib/defaultiface.test 999s # Running test: glib/hmac.test 999s ok - glib/hmac.test 999s # Running test: glib/cxx-11.test 999s ok - glib/cxx-11.test 999s # Running test: glib/socket-service.test 999s ok - glib/socket-service.test 999s # Running test: glib/portal-support-flatpak-gsettings-only.test 999s ok - glib/portal-support-flatpak-gsettings-only.test 999s # Running test: glib/cmph-bdz.test 999s ok - glib/cmph-bdz.test 999s # Running test: glib/contenttype.test 999s ok - glib/contenttype.test 999s # Running test: glib/async-splice-output-stream.test 999s ok - glib/async-splice-output-stream.test 999s # Running test: glib/giomodule.test 999s ok - glib/giomodule.test 999s # Running test: glib/dir.test 999s ok - glib/dir.test 999s # Running test: glib/objects-refcount2.test 999s # Executing: glib/objects-refcount2.test 999s TAP version 14 999s # random seed: R02Sa6112336685219c9a2479e4603ea2d0a 999s 1..1 999s # Start of gobject tests 999s # Start of refcount tests 999s # init 0x8f9f730 999s # 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # dispose 0x8f9f730! 999s # 999s ok 1 /gobject/refcount/properties-2 999s # slow test /gobject/refcount/properties-2 executed in 1.50 secs 999s # End of refcount tests 999s # End of gobject tests 999s TAP version 14 999s # random seed: R02S6b8e9c08a310aa1db5be80758aa19141 999s 1..19 999s # Start of tls-certificate tests 999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 999s ok 1 /tls-certificate/pem-parser 999s ok 2 /tls-certificate/pem-parser-handles-chain 999s ok 3 /tls-certificate/from_file 999s ok 4 /tls-certificate/from_files 999s ok 5 /tls-certificate/from_files_crlf 999s ok 6 /tls-certificate/from_files_pkcs8 999s ok 7 /tls-certificate/from_files_pkcs8enc 999s ok 8 /tls-certificate/list_from_file 999s ok 9 /tls-certificate/pkcs11-uri 999s ok 10 /tls-certificate/pkcs11-uri-unsupported 999s ok 11 /tls-certificate/from_pkcs12 999s ok 12 /tls-certificate/from_pkcs12_file 999s ok 13 /tls-certificate/not-valid-before 999s ok 14 /tls-certificate/not-valid-after 999s ok 15 /tls-certificate/subject-name 999s ok 16 /tls-certificate/issuer-name 999s ok 17 /tls-certificate/dns-names 999s ok 18 /tls-certificate/ip-addresses 999s ok 19 /tls-certificate/pem-parser-no-sentinel 999s # End of tls-certificate tests 999s TAP version 14 999s # random seed: R02Sc247e91e2b2b68fe4832c25c0f57a050 999s 1..2 999s # Start of object-info tests 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_MX3V52/object-info/find-method-using-interfaces/.dirs/runtime 999s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 999s ok 1 /object-info/find-method-using-interfaces 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_MX3V52/object-info/find-vfunc-using-interfaces/.dirs/runtime 999s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 999s ok 2 /object-info/find-vfunc-using-interfaces 999s # End of object-info tests 999s TAP version 14 999s # random seed: R02Sef8bacfbf654c6c260edbe7a2d52cc3c 999s 1..4 999s # Start of enum tests 999s ok 1 /enum/basic 999s ok 2 /enum/define-type 999s # End of enum tests 999s # Start of flags tests 999s ok 3 /flags/basic 999s ok 4 /flags/define-type 999s # End of flags tests 999s TAP version 14 999s # random seed: R02S49afe96351d3620e676117f3f6a644c5 999s 1..1 999s # Start of thread tests 999s ok 1 /thread/onceinit 999s # End of thread tests 999s TAP version 14 999s # random seed: R02S9aee8a6ba3df6bdb04160ae37c1874e3 999s 1..1 999s # Start of application-command-line tests 999s ok 1 /application-command-line/basic-properties 999s # End of application-command-line tests 999s TAP version 14 999s # random seed: R02S2d5f18a1fe9d5219386c4ca0d16439c8 999s 1..24 999s # Start of gapplication tests 999s ok 1 /gapplication/no-dbus 999s ok 2 /gapplication/no-appid 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 3 /gapplication/properties 999s ok 4 /gapplication/app-id 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 5 /gapplication/quit 999s ok 6 /gapplication/registered 999s ok 7 /gapplication/local-actions 999s ok 8 /gapplication/local-command-line 999s ok 9 /gapplication/resource-path 999s ok 10 /gapplication/test-help 999s ok 11 /gapplication/command-line-done 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 12 /gapplication/test-busy 999s ok 13 /gapplication/test-handle-local-options1 999s ok 14 /gapplication/test-handle-local-options2 999s ok 15 /gapplication/test-handle-local-options3 999s ok 16 /gapplication/api 999s ok 17 /gapplication/version 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # launching subprocess 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 18 /gapplication/replace 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # launching subprocess 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 19 /gapplication/no-replace 999s # slow test /gapplication/no-replace executed in 0.51 secs 999s # Start of dbus tests 999s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # Message 0 999s # Message 1 999s # Message 2 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 20 /gapplication/dbus/activate 999s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # Message 0 999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 999s # Message 1 999s # Message 2 999s # Message 3 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 21 /gapplication/dbus/open 999s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # Message 0 999s # Message 1 999s # Message 2 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 22 /gapplication/dbus/command-line 999s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 23 /gapplication/dbus/command-line-done 999s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 999s # Message 0 999s # Message 1 999s # Message 2 999s # Message 3 999s # Message 4 999s # Message 5 999s # Message 6 999s # Message 7 999s # Message 8 999s # Message 9 999s # Message 10 999s # Message 11 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 999s ok 24 /gapplication/dbus/activate-action 999s # End of dbus tests 999s # End of gapplication tests 999s TAP version 14 999s # random seed: R02Sbcb4f5448a554b84be32007869ab4fb0 999s 1..7 999s # Start of signal tests 999s # Start of handler tests 999s # min perf: connected 1 handlers in 0.000 seconds 999s ok 1 /signal/handler/connect-many 999s # min perf: disconnected 1 handlers in 0.000 seconds 999s ok 2 /signal/handler/disconnect-many-ordered 999s # min perf: disconnected 1 handlers in 0.000 seconds 999s ok 3 /signal/handler/disconnect-many-inverse 999s # min perf: disconnected 1 handlers in 0.000 seconds 999s ok 4 /signal/handler/disconnect-many-random 999s # min perf: disconnected 1 handlers in 0.000 seconds 999s ok 5 /signal/handler/disconnect-2-signals 999s # min perf: disconnected 1 handlers in 0.000 seconds 999s ok 6 /signal/handler/disconnect-2-objects 999s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 999s ok 7 /signal/handler/block-many 999s # End of handler tests 999s # End of signal tests 999s TAP version 14 999s # random seed: R02S0ea2adc3d58bfd4b6620c54d04fb11e4 999s 1..3 999s # Start of private tests 999s ok 1 /private/instance 999s ok 2 /private/derived-instance 999s ok 3 /private/mixed-derived-instance 999s # End of private tests 999s TAP version 14 999s # random seed: R02S110842e3d08de7e16749925ad04f2542 999s 1..2 999s # Start of tls-connection tests 999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ?gio-tls-backend? 999s ok 1 /tls-connection/get-tls-channel-binding 999s ok 2 /tls-connection/get-dtls-channel-binding 999s # End of tls-connection tests 999s TAP version 14 999s # random seed: R02S65580b13f32c28f457dad268a56d5d69 999s 1..5 999s # Start of buffered-output-stream tests 999s ok 1 /buffered-output-stream/write 999s ok 2 /buffered-output-stream/grow 999s ok 3 /buffered-output-stream/seek 999s ok 4 /buffered-output-stream/truncate 999s # End of buffered-output-stream tests 999s # Start of filter-output-stream tests 999s ok 5 /filter-output-stream/close 999s # End of filter-output-stream tests 999s TAP version 14 999s # random seed: R02S277eb0a3b6a26bb1fdc88e992c81490f 999s ** 999s 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?") 999s # 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?") 999s TAP version 14 999s # random seed: R02Sbb00bdf75de3160a234ef39163c51e14 999s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 999s 1..2 999s # Start of g-file-info-filesystem-readonly tests 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 999s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_1EPC62/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 999s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 999s # End of g-file-info-filesystem-readonly tests 999s TAP version 14 999s # random seed: R02Sbb05e0f9e9f09626051b738456429465 999s 1..2 999s # Start of atomic tests 999s ok 1 /atomic/types 999s ok 2 /atomic/threaded 999s # End of atomic tests 999s TAP version 14 999s # random seed: R02S509ddca5f87dc5c09b1fd866e6bc9f38 999s 1..41 999s # Start of utils tests 999s ok 1 /utils/language-names 999s ok 2 /utils/locale-variants 999s ok 3 /utils/version 999s ok 4 /utils/appname 999s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 999s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 999s ok 5 /utils/prgname-thread-safety 999s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 999s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 999s ok 6 /utils/tmpdir 999s ok 7 /utils/basic_bits 999s ok 8 /utils/bits 999s ok 9 /utils/swap 999s ok 10 /utils/find-program 999s ok 11 /utils/find-program-for-path 999s ok 12 /utils/debug 999s ok 13 /utils/codeset 999s ok 14 /utils/codeset2 999s ok 15 /utils/console-charset 999s ok 16 /utils/gettext 999s ok 17 /utils/username 999s ok 18 /utils/realname 999s ok 19 /utils/hostname 999s ok 20 /utils/xdgdirs 999s ok 21 /utils/specialdir 999s # NAME: Ubuntu 999s ok 22 /utils/os-info 999s ok 23 /utils/clear-pointer 999s ok 24 /utils/clear-pointer-cast 999s ok 25 /utils/take-pointer 999s ok 26 /utils/clear-source 999s ok 27 /utils/misc-mem 999s # /utils/aligned-mem summary: Aligned memory allocator 999s # Alignment must not be zero 999s # Alignment must be a power of two 999s # Alignment must be a multiple of sizeof(void*) 999s ok 28 /utils/aligned-mem 999s # /utils/free-sized summary: Check that g_free_sized() works 999s ok 29 /utils/free-sized 999s ok 30 /utils/nullify 999s ok 31 /utils/atexit 999s ok 32 /utils/check-setuid 999s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 999s ok 33 /utils/int-limits 999s ok 34 /utils/clear-list 999s ok 35 /utils/clear-slist 999s ok 36 /utils/steal-handle-id 999s # Start of specialdir tests 999s ok 37 /utils/specialdir/desktop 999s # End of specialdir tests 999s # Start of clear-pointer tests 999s ok 38 /utils/clear-pointer/side-effects 999s # End of clear-pointer tests 999s # Start of aligned-mem tests 999s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 999s ok 39 /utils/aligned-mem/alignment 999s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 999s ok 40 /utils/aligned-mem/zeroed 999s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 999s ok 41 /utils/aligned-mem/free-sized 999s # Start of subprocess tests 999s # End of subprocess tests 999s # End of aligned-mem tests 999s # End of utils tests 999s TAP version 14 999s # random seed: R02Sf4034ecab80188ca70997f5188a404fe 999s 1..4 999s # Start of unix-mounts tests 999s ok 1 /unix-mounts/is-system-fs-type 999s ok 2 /unix-mounts/is-system-device-path 999s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 999s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 999s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 999s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 999s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 999s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 999s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 999s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 999s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 999s ok 3 /unix-mounts/get-mount-points 999s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 999s ok 4 /unix-mounts/get-mount-entries 999s # End of unix-mounts tests 999s TAP version 14 999s # random seed: R02S7b448db8b1f4ae03eb27d64404c9b579 999s 1..7 999s # Start of mappedfile tests 999s ok 1 /mappedfile/basic 999s ok 2 /mappedfile/empty 999s ok 3 /mappedfile/device 999s ok 4 /mappedfile/nonexisting 999s ok 5 /mappedfile/writable 999s ok 6 /mappedfile/writable_fd 999s ok 7 /mappedfile/gbytes 999s # End of mappedfile tests 999s TAP version 14 999s # random seed: R02Sb19d7d1eaaea48393f53e9924247c1ab 999s 1..9 999s # Start of gdbus tests 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/empty-address/.dirs/runtime 999s ok 1 /gdbus/empty-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/unsupported-address/.dirs/runtime 999s ok 2 /gdbus/unsupported-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/address-parsing/.dirs/runtime 999s ok 3 /gdbus/address-parsing 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/unix-address/.dirs/runtime 999s ok 4 /gdbus/unix-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/nonce-tcp-address/.dirs/runtime 999s ok 5 /gdbus/nonce-tcp-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/tcp-address/.dirs/runtime 999s ok 6 /gdbus/tcp-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/autolaunch-address/.dirs/runtime 999s ok 7 /gdbus/autolaunch-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/mixed-address/.dirs/runtime 999s ok 8 /gdbus/mixed-address 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/system-config1:/tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/system-data1:/tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-addresses_4KZ852/gdbus/escape-address/.dirs/runtime 999s ok 9 /gdbus/escape-address 999s # End of gdbus tests 999s TAP version 14 999s # random seed: R02S24d11f5565ace7764ce9e8aab8bf73c3 999s 1..4 999s # Start of filter-stream tests 999s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=568394 999s ok 1 /filter-stream/input 999s ok 2 /filter-stream/output 999s ok 3 /filter-stream/async-input 999s ok 4 /filter-stream/async-output 999s # End of filter-stream tests 999s TAP version 14 999s # random seed: R02Scebd28caf80b59059d3509be3fbc29fa 999s 1..8 999s # Start of thread tests 999s ok 1 /thread/private1 999s ok 2 /thread/private2 999s # slow test /thread/private2 executed in 1.08 secs 999s ok 3 /thread/private3 999s ok 4 /thread/staticprivate1 999s ok 5 /thread/staticprivate2 999s ok 6 /thread/staticprivate3 999s ok 7 /thread/staticprivate4 999s # slow test /thread/staticprivate4 executed in 1.08 secs 999s ok 8 /thread/staticprivate5 999s # End of thread tests 999s TAP version 14 999s # random seed: R02S2b3304680a4d4363d108d74ec5e8457a 999s 1..9 999s # Start of value tests 999s ok 1 /value/basic 999s ok 2 /value/collection 999s ok 3 /value/copying 999s ok 4 /value/enum-transformation 999s ok 5 /value/gtype 999s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 999s ok 6 /value/string 999s # Next: GObject object in GValue of GObject to GValue of GObject 999s # Next: GObject object in GValue of GObject to GValue of TestInterface 999s # Next: GObject object in GValue of GObject to GValue of TestObjectA 999s # Next: GObject object in GValue of GObject to GValue of TestObjectB 999s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 999s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 999s # Next: TestObjectA object in GValue of GObject to GValue of GObject 999s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 999s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 999s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 999s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 999s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 999s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 999s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 999s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 999s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 999s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 999s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 999s # Next: TestObjectB object in GValue of GObject to GValue of GObject 999s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 999s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 999s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 999s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 999s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 999s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 999s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 999s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 999s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 999s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 999s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 999s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 999s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 999s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 999s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 999s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 999s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 999s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 999s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 999s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 999s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 999s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 999s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 999s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 999s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 999s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 999s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 999s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 999s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 999s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 999s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 999s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 999s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 999s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 999s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 999s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 999s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 999s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 999s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 999s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 999s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 999s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 999s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 999s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 999s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 999s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 999s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 999s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 999s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 999s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 999s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 999s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 999s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 999s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 999s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 999s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 999s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 999s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 999s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 999s ok 7 /value/transform-object 999s # Start of array tests 999s ok 8 /value/array/basic 999s ok 9 /value/array/sort-with-data 999s # End of array tests 999s # End of value tests 999s TAP version 13 999s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 999s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 999s # tmpdir: /tmp/tmpgu27rqr7 999s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 999s # Return code: -6 999s # Output: 999s # 999s # Error: 999s # GLib-Message: 18:53:24.730: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 999s # GLib-Message: 18:53:24.730: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 999s # ../../../glib/gprintf.c:350: failed to allocate memory 999s 1..1 999s TAP version 14 999s # random seed: R02Sd22015dafa0322bff062b93d5b73e856 999s 1..2 999s # Start of gobject tests 999s ok 1 /gobject/static-iface 999s ok 2 /gobject/dynamic-iface 999s # End of gobject tests 999s TAP version 14 999s # random seed: R02S7bafe8fe6f6ae84c52606ca3a1a99214 999s 1..37 999s # Start of hmac tests 999s ok 1 /hmac/sha1-1 999s ok 2 /hmac/sha1-2 999s ok 3 /hmac/sha1-3 999s ok 4 /hmac/sha1-4 999s ok 5 /hmac/sha1-5 999s ok 6 /hmac/sha1-6 999s ok 7 /hmac/sha1-7 999s ok 8 /hmac/sha256-1 999s ok 9 /hmac/sha256-2 999s ok 10 /hmac/sha256-3 999s ok 11 /hmac/sha256-4 999s ok 12 /hmac/sha256-5 999s ok 13 /hmac/sha256-6 999s ok 14 /hmac/sha384-1 999s ok 15 /hmac/sha384-2 999s ok 16 /hmac/sha384-3 999s ok 17 /hmac/sha384-4 999s ok 18 /hmac/sha384-5 999s ok 19 /hmac/sha384-6 999s ok 20 /hmac/sha512-1 999s ok 21 /hmac/sha512-2 999s ok 22 /hmac/sha512-3 999s ok 23 /hmac/sha512-4 999s ok 24 /hmac/sha512-5 999s ok 25 /hmac/sha512-6 999s ok 26 /hmac/md5-1 999s ok 27 /hmac/md5-2 999s ok 28 /hmac/md5-3 999s ok 29 /hmac/md5-4 999s ok 30 /hmac/md5-5 999s ok 31 /hmac/md5-6 999s ok 32 /hmac/md5-7 999s ok 33 /hmac/ref-unref 999s ok 34 /hmac/copy 999s ok 35 /hmac/for-data 999s ok 36 /hmac/for-string 999s ok 37 /hmac/for-bytes 999s # End of hmac tests 999s TAP version 14 999s # random seed: R02S30e476268530c68645c8c2bcdef854c1 999s 1..2 999s # Start of gtask tests 999s # 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. 999s ok 1 /gtask/name 999s # Start of name tests 999s # 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. 999s ok 2 /gtask/name/macro-wrapper 999s # End of name tests 999s # End of gtask tests 999s TAP version 14 999s # random seed: R02S55e9ada320d47fbfd7fc1780b1bd43c6 999s 1..4 999s # Start of socket-service tests 999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 999s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa254148 and GSocketClientAsyncConnectData 0xa2563b8 999s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 999s ok 1 /socket-service/start-stop 999s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa25b860 and GSocketClientAsyncConnectData 0xa25b808 999s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 999s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 999s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa25b470 for GSocketClientAsyncConnectData 0xa2563b8 999s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 999s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 999s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 999s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 999s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 999s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa255c40 for GSocketClientAsyncConnectData 0xa25b808 999s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 999s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 999s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 999s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 999s ok 2 /socket-service/read_write_async 999s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa25ad20 and GSocketClientAsyncConnectData 0xa25b808 999s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 999s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 999s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa25b568 for GSocketClientAsyncConnectData 0xa25b808 999s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 999s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 999s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 999s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 999s ok 3 /socket-service/read_writev_async 999s # Start of threaded tests 999s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 999s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xa25deb0 and GSocketClientAsyncConnectData 0xa25bbe8 999s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 999s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 999s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xa25e098 for GSocketClientAsyncConnectData 0xa25bbe8 999s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 999s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 999s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 999s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 999s ok 4 /socket-service/threaded/712570 999s # End of threaded tests 999s # End of socket-service tests 999s TAP version 14 999s # random seed: R02S85c8dfdd5b7890ab725fec281798dbfc 999s 1..1 999s # Start of portal-support tests 999s # Start of flatpak tests 999s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/home 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/cache 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/system-config2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/config 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/system-data2 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/data 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/state 999s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/runtime 999s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_XX8S52/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 999s ok 1 /portal-support/flatpak/gsettings 999s # End of flatpak tests 999s # End of portal-support tests 999s TAP version 14 999s # random seed: R02Sc4dd96391cd2dddbe132156af027e0a2 999s 1..2 999s # Start of cmph-bdz tests 999s ok 1 /cmph-bdz/search 999s ok 2 /cmph-bdz/search-packed 999s # End of cmph-bdz tests 999s TAP version 14 999s # random seed: R02S3ec5baeb377f4e5d800bd1a804e57279 999s 1..14 999s # Start of contenttype tests 999s ok 1 /contenttype/guess 999s ok 2 /contenttype/guess_svg_from_data 999s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 999s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 999s ok 5 /contenttype/unknown 999s ok 6 /contenttype/subtype 999s ok 7 /contenttype/list 999s ok 8 /contenttype/executable 999s ok 9 /contenttype/description 999s ok 10 /contenttype/icon 999s ok 11 /contenttype/symbolic-icon 999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 999s ok 12 /contenttype/tree 999s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 999s ok 13 /contenttype/tree_invalid_encoding 999s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 999s ok 14 /contenttype/test_type_is_a_special_case 999s # End of contenttype tests 999s TAP version 14 999s # random seed: R02S264ed408b28c9a7973c950114c7202d8 999s 1..5 999s # Start of async-splice tests 999s ok 1 /async-splice/copy-chunks 999s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 999s ok 2 /async-splice/copy-chunks-threaded-input 999s ok 3 /async-splice/copy-chunks-threaded-output 999s ok 4 /async-splice/copy-chunks-threaded 999s ok 5 /async-splice/cancelled 999s # End of async-splice tests 999s TAP version 14 999s # random seed: R02S7de1a511528a391ae1b3294d2a784993 999s 1..3 999s # Start of giomodule tests 999s ok 1 /giomodule/extension-point 999s ok 2 /giomodule/module-scan-all 999s ok 3 /giomodule/module-scan-all-with-scope 999s # End of giomodule tests 999s TAP version 14 999s # random seed: R02Sf07e38c8151647a935e13659a90ce1c5 999s 1..3 999s # Start of dir tests 999s ok 1 /dir/read 999s ok 2 /dir/nonexisting 999s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 999s ok 3 /dir/refcounting 999s # End of dir tests 999s TAP version 14 999s # random seed: R02Sf07e031105814b73352bd9d033287ba8 999s 1..1 999s # Start of gobject tests 999s # Start of refcount tests 999s # init 0x2c66730 999s # 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 999s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1000s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1001s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1002s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1003s # . 1005s # . 1005s # Executing: glib/objects-refcount2.test 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1005s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1006s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1007s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1008s # . 1009s # . 1009s # Executing: glib/objects-refcount2.test 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1009s # . 1010s # . 1010s # . 1010s # dispose 0x2c66730! 1010s # 1010s ok 1 /gobject/refcount/object-advanced 1010s # slow test /gobject/refcount/object-advanced executed in 12.17 secs 1010s # End of refcount tests 1010s # End of gobject tests 1010s ok - glib/objects-refcount2.test 1010s # Running test: glib/unicode-encoding.test 1010s TAP version 14 1010s # random seed: R02S62fe8e0f7f8654ffe848cc228a2cf2e4 1010s 1..1 1010s # Start of unicode tests 1010s ok 1 /unicode/encoding 1010s # End of unicode tests 1010s ok - glib/unicode-encoding.test 1010s # Running test: glib/protocol.test 1010s TAP version 14 1010s # random seed: R02S267e2812d5da2ca65581366722d7aa28 1010s 1..9 1010s # Start of glib tests 1010s # Start of testing tests 1010s # Start of protocol tests 1010s ok 1 /glib/testing/protocol/debug 1010s ok 2 /glib/testing/protocol/info 1010s ok 3 /glib/testing/protocol/message 1010s ok 4 /glib/testing/protocol/warning 1010s ok 5 /glib/testing/protocol/critical 1010s ok 6 /glib/testing/protocol/error 1010s ok 7 /glib/testing/protocol/gtest-message 1010s ok 8 /glib/testing/protocol/test-message 1010s ok 9 /glib/testing/protocol/test-error 1010s # End of protocol tests 1010s # End of testing tests 1010s # End of glib tests 1010s ok - glib/protocol.test 1010s # Running test: glib/sort.test 1010s TAP version 14 1010s # random seed: R02Sced8cbbaef0b26b8d38b04f13ca39ddb 1010s 1..5 1010s # Start of sort tests 1010s ok 1 /sort/basic 1010s ok 2 /sort/zero-elements 1010s ok 3 /sort/stable 1010s ok 4 /sort/big 1010s ok - glib/sort.test 1010s ok 5 /sort/deprecated 1010s # End of sort tests 1010s # Running test: glib/gdbus-error.test 1010s TAP version 14 1010s # random seed: R02S99b69efdd841263f5c79d7547e865f6a 1010s 1..4 1010s # Start of gdbus tests 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_2PW452/gdbus/registered-errors/.dirs/runtime 1010s ok 1 /gdbus/registered-errors 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_2PW452/gdbus/unregistered-errors/.dirs/runtime 1010s ok 2 /gdbus/unregistered-errors 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_2PW452/gdbus/transparent-gerror/.dirs/runtime 1010s ok 3 /gdbus/transparent-gerror 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_2PW452/gdbus/register-error/.dirs/runtime 1010s ok 4 /gdbus/register-error 1010s # End of gdbus tests 1010s ok - glib/gdbus-error.test 1010s # Running test: glib/portal-support-snap-classic.test 1010s TAP version 14 1010s # random seed: R02Sabfe6d208b450793522f99541995f00e 1010s 1..3 1010s # Start of portal-support tests 1010s # Start of snap-classic tests 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl/.dirs/runtime 1010s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/no-snapctl: No such file or directory 1010s ok 1 /portal-support/snap-classic/no-snapctl 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/runtime 1010s # Created snap.yaml in /tmp/test_portal-support-snap-classic_X7R452/meta/snap.yaml 1010s # Created snapctl in /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none/.dirs/runtime/snapctl 1010s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/none: No such file or directory 1010s ok 2 /portal-support/snap-classic/none 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/runtime 1010s # Created snap.yaml in /tmp/test_portal-support-snap-classic_X7R452/meta/snap.yaml 1010s # Created snapctl in /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all/.dirs/runtime/snapctl 1010s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_X7R452/portal-support/snap-classic/all: No such file or directory 1010s ok 3 /portal-support/snap-classic/all 1010s # End of snap-classic tests 1010s # End of portal-support tests 1010s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_X7R452: No such file or directory 1010s TAP version 14 1010s # random seed: R02S34d237832ced8c057247caaf598f5447 1010s 1..5 1010s # Start of gio tests 1010s # Start of contexts tests 1010s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1010s ok 1 /gio/contexts/thread-independence 1010s ok 2 /gio/contexts/context-independence 1010s # Start of context-specific tests 1010s ok 3 /gio/contexts/context-specific/identity 1010s ok - glib/portal-support-snap-classic.test 1010s # Running test: glib/contexts.test 1010s ok 4 /gio/contexts/context-specific/emit 1010s ok 5 /gio/contexts/context-specific/emit-and-unref 1010s # End of context-specific tests 1010s # End of contexts tests 1010s # End of gio tests 1010s ok - glib/contexts.test 1010s # Running test: glib/gdbus-message.test 1010s TAP version 14 1010s # random seed: R02S9ec1c732da8761b9145fca8d9c434a09 1010s 1..3 1010s # Start of gdbus tests 1010s # Start of message tests 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_V2Y652/gdbus/message/lock/.dirs/runtime 1010s ok 1 /gdbus/message/lock 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_V2Y652/gdbus/message/copy/.dirs/runtime 1010s ok 2 /gdbus/message/copy 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_V2Y652/gdbus/message/bytes-needed/.dirs/runtime 1010s # Vector: 0 1010s # Vector: 1 1010s # Vector: 2 1010s # Vector: 3 1010s # Vector: 4 1010s # Vector: 5 1010s ok 3 /gdbus/message/bytes-needed 1010s # End of message tests 1010s # End of gdbus tests 1010s ok - glib/gdbus-message.test 1010s # Running test: glib/async-close-output-stream.test 1010s TAP version 14 1010s # random seed: R02S3d142aa3842bdf9f64170a95faf421fe 1010s 1..3 1010s # Start of close-async tests 1010s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1010s ok 1 /close-async/without-flush 1010s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1010s ok 2 /close-async/with-flush 1010s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1010s ok 3 /close-async/with-async-flush 1010s # End of close-async tests 1010s ok - glib/async-close-output-stream.test 1010s # Running test: glib/gdbus-test-codegen-old.test 1010s TAP version 14 1010s # random seed: R02Sa78575ac2830e913f4b015801b9b6e91 1010s 1..8 1010s # Start of gdbus tests 1010s # Start of codegen tests 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/annotations/.dirs/runtime 1010s ok 1 /gdbus/codegen/annotations 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/interface_stability/.dirs/runtime 1010s ok 2 /gdbus/codegen/interface_stability 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/object-manager/.dirs/runtime 1010s ok 3 /gdbus/codegen/object-manager 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/property-naming/.dirs/runtime 1010s ok 4 /gdbus/codegen/property-naming 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/autocleanups/.dirs/runtime 1010s ok 5 /gdbus/codegen/autocleanups 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/deprecations/.dirs/runtime 1010s ok 6 /gdbus/codegen/deprecations 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/standalone-interface-info/.dirs/runtime 1010s ok 7 /gdbus/codegen/standalone-interface-info 1010s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/home 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/cache 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/system-config2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/config 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/system-data2 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/data 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/state 1010s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_AYF252/gdbus/codegen/unix-fd-list/.dirs/runtime 1010s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1010s ok 8 /gdbus/codegen/unix-fd-list 1010s # End of codegen tests 1010s # End of gdbus tests 1010s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1010s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1010s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1010s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1010s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1010s ok - glib/gdbus-test-codegen-old.test 1010s # Running test: glib/thread-pool.test 1010s TAP version 14 1010s # random seed: R02S20e3230dec684726067fa28205355879 1010s 1..5 1010s # Start of thread_pool tests 1010s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1010s ok 1 /thread_pool/shared 1010s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1010s ok 2 /thread_pool/exclusive 1010s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1010s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1010s ok 3 /thread_pool/create_shared_after_exclusive 1010s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1010s ok 4 /thread_pool/create_full 1010s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1010s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1010s ok 5 /thread_pool/create_exclusive_after_shared 1010s # End of thread_pool tests 1010s ok - glib/thread-pool.test 1010s # Running test: glib/codegen.py.test 1010s TAP version 13 1010s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1010s # gdbus-codegen: /usr/bin/gdbus-codegen 1010s # tmpdir: /tmp/tmpmy9ela6p 1010s # /tmp/tmpmy9ela6p/tmp27e8c_qq.xml: 1010s # 1010s # 1010s # 1010s # 1010s # 1010s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmy9ela6p/tmp27e8c_qq.xml', '--output', '-', '--header'] 1010s # Return code: 0 1010s # Output: 1010s # /* 1010s # * This file is generated by gdbus-codegen, do not modify it. 1010s # * 1010s # * The license of this code is the same as for the D-Bus interface description 1010s # * it was derived from. Note that it links to GLib, so must comply with the 1010s # * LGPL linking clauses. 1010s # */ 1010s # 1010s # #ifndef __STDOUT__ 1010s # #define __STDOUT__ 1010s # 1010s # #include 1010s # 1010s # G_BEGIN_DECLS 1010s # 1010s # 1010s # /* ------------------------------------------------------------------------ */ 1010s # /* Declarations for org.project.UsefulInterface */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1010s # 1010s # struct _OrgProjectUsefulInterface; 1010s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1010s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1010s # 1010s # struct _OrgProjectUsefulInterfaceIface 1010s # { 1010s # GTypeInterface parent_iface; 1010s # 1010s # gboolean (*handle_useful_method) ( 1010s # OrgProjectUsefulInterface *object, 1010s # GDBusMethodInvocation *invocation); 1010s # 1010s # }; 1010s # 1010s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1010s # 1010s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1010s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1010s # 1010s # 1010s # /* D-Bus method call completion functions: */ 1010s # void org_project_useful_interface_complete_useful_method ( 1010s # OrgProjectUsefulInterface *object, 1010s # GDBusMethodInvocation *invocation); 1010s # 1010s # 1010s # 1010s # /* D-Bus method calls: */ 1010s # void org_project_useful_interface_call_useful_method ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # 1010s # gboolean org_project_useful_interface_call_useful_method_finish ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # 1010s # gboolean org_project_useful_interface_call_useful_method_sync ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # 1010s # 1010s # /* ---- */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1010s # 1010s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1010s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1010s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1010s # 1010s # struct _OrgProjectUsefulInterfaceProxy 1010s # { 1010s # /*< private >*/ 1010s # GDBusProxy parent_instance; 1010s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1010s # }; 1010s # 1010s # struct _OrgProjectUsefulInterfaceProxyClass 1010s # { 1010s # GDBusProxyClass parent_class; 1010s # }; 1010s # 1010s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1010s # 1010s # #if GLIB_CHECK_VERSION(2, 44, 0) 1010s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1010s # #endif 1010s # 1010s # void org_project_useful_interface_proxy_new ( 1010s # GDBusConnection *connection, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1010s # GDBusConnection *connection, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # void org_project_useful_interface_proxy_new_for_bus ( 1010s # GBusType bus_type, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1010s # GBusType bus_type, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # 1010s # /* ---- */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1010s # 1010s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1010s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1010s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1010s # 1010s # struct _OrgProjectUsefulInterfaceSkeleton 1010s # { 1010s # /*< private >*/ 1010s # GDBusInterfaceSkeleton parent_instance; 1010s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1010s # }; 1010s # 1010s # struct _OrgProjectUsefulInterfaceSkeletonClass 1010s # { 1010s # GDBusInterfaceSkeletonClass parent_class; 1010s # }; 1010s # 1010s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1010s # 1010s # #if GLIB_CHECK_VERSION(2, 44, 0) 1010s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1010s # #endif 1010s # 1010s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1010s # 1010s # 1010s # G_END_DECLS 1010s # 1010s # #endif /* __STDOUT__ */ 1010s # Error: 1010s # 1010s # /tmp/tmpmy9ela6p/tmpwcxkis22.xml: 1010s # 1010s # 1010s # 1010s # 1010s # 1010s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmy9ela6p/tmpwcxkis22.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1010s # Return code: 0 1010s # Output: 1010s # /* 1010s # * This file is generated by gdbus-codegen, do not modify it. 1010s # * 1010s # * The license of this code is the same as for the D-Bus interface description 1010s # * it was derived from. Note that it links to GLib, so must comply with the 1010s # * LGPL linking clauses. 1010s # */ 1010s # 1010s # #ifndef __STDOUT__ 1010s # #define __STDOUT__ 1010s # 1010s # #include 1010s # 1010s # G_BEGIN_DECLS 1010s # 1010s # 1010s # /* ------------------------------------------------------------------------ */ 1010s # /* Declarations for org.project.UsefulInterface */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1010s # 1010s # struct _OrgProjectUsefulInterface; 1010s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1010s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1010s # 1010s # struct _OrgProjectUsefulInterfaceIface 1010s # { 1010s # GTypeInterface parent_iface; 1010s # 1010s # gboolean (*handle_useful_method) ( 1010s # OrgProjectUsefulInterface *object, 1010s # GDBusMethodInvocation *invocation); 1010s # 1010s # }; 1010s # 1010s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1010s # 1010s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1010s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1010s # 1010s # 1010s # /* D-Bus method call completion functions: */ 1010s # void org_project_useful_interface_complete_useful_method ( 1010s # OrgProjectUsefulInterface *object, 1010s # GDBusMethodInvocation *invocation); 1010s # 1010s # 1010s # 1010s # /* D-Bus method calls: */ 1010s # void org_project_useful_interface_call_useful_method ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # 1010s # gboolean org_project_useful_interface_call_useful_method_finish ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # 1010s # gboolean org_project_useful_interface_call_useful_method_sync ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # 1010s # 1010s # /* ---- */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1010s # 1010s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1010s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1010s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1010s # 1010s # struct _OrgProjectUsefulInterfaceProxy 1010s # { 1010s # /*< private >*/ 1010s # GDBusProxy parent_instance; 1010s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1010s # }; 1010s # 1010s # struct _OrgProjectUsefulInterfaceProxyClass 1010s # { 1010s # GDBusProxyClass parent_class; 1010s # }; 1010s # 1010s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1010s # 1010s # #if GLIB_CHECK_VERSION(2, 44, 0) 1010s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1010s # #endif 1010s # 1010s # void org_project_useful_interface_proxy_new ( 1010s # GDBusConnection *connection, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1010s # GDBusConnection *connection, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # void org_project_useful_interface_proxy_new_for_bus ( 1010s # GBusType bus_type, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1010s # GBusType bus_type, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # 1010s # /* ---- */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1010s # 1010s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1010s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1010s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1010s # 1010s # struct _OrgProjectUsefulInterfaceSkeleton 1010s # { 1010s # /*< private >*/ 1010s # GDBusInterfaceSkeleton parent_instance; 1010s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1010s # }; 1010s # 1010s # struct _OrgProjectUsefulInterfaceSkeletonClass 1010s # { 1010s # GDBusInterfaceSkeletonClass parent_class; 1010s # }; 1010s # 1010s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1010s # 1010s # #if GLIB_CHECK_VERSION(2, 44, 0) 1010s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1010s # #endif 1010s # 1010s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1010s # 1010s # 1010s # G_END_DECLS 1010s # 1010s # #endif /* __STDOUT__ */ 1010s # Error: 1010s # 1010s # /tmp/tmpmy9ela6p/tmp4ledqdfq.xml: 1010s # 1010s # 1010s # 1010s # 1010s # 1010s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmy9ela6p/tmp4ledqdfq.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1010s # Return code: 0 1010s # Output: 1010s # /* 1010s # * This file is generated by gdbus-codegen, do not modify it. 1010s # * 1010s # * The license of this code is the same as for the D-Bus interface description 1010s # * it was derived from. Note that it links to GLib, so must comply with the 1010s # * LGPL linking clauses. 1010s # */ 1010s # 1010s # #ifndef __STDOUT__ 1010s # #define __STDOUT__ 1010s # 1010s # #include 1010s # 1010s # G_BEGIN_DECLS 1010s # 1010s # 1010s # /* ------------------------------------------------------------------------ */ 1010s # /* Declarations for org.project.UsefulInterface */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1010s # 1010s # struct _OrgProjectUsefulInterface; 1010s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1010s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1010s # 1010s # struct _OrgProjectUsefulInterfaceIface 1010s # { 1010s # GTypeInterface parent_iface; 1010s # 1010s # gboolean (*handle_useful_method) ( 1010s # OrgProjectUsefulInterface *object, 1010s # GDBusMethodInvocation *invocation); 1010s # 1010s # }; 1010s # 1010s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1010s # 1010s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1010s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1010s # 1010s # 1010s # /* D-Bus method call completion functions: */ 1010s # void org_project_useful_interface_complete_useful_method ( 1010s # OrgProjectUsefulInterface *object, 1010s # GDBusMethodInvocation *invocation); 1010s # 1010s # 1010s # 1010s # /* D-Bus method calls: */ 1010s # void org_project_useful_interface_call_useful_method ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GDBusCallFlags call_flags, 1010s # gint timeout_msec, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # 1010s # gboolean org_project_useful_interface_call_useful_method_finish ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # 1010s # gboolean org_project_useful_interface_call_useful_method_sync ( 1010s # OrgProjectUsefulInterface *proxy, 1010s # GDBusCallFlags call_flags, 1010s # gint timeout_msec, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # 1010s # 1010s # /* ---- */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1010s # 1010s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1010s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1010s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1010s # 1010s # struct _OrgProjectUsefulInterfaceProxy 1010s # { 1010s # /*< private >*/ 1010s # GDBusProxy parent_instance; 1010s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1010s # }; 1010s # 1010s # struct _OrgProjectUsefulInterfaceProxyClass 1010s # { 1010s # GDBusProxyClass parent_class; 1010s # }; 1010s # 1010s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1010s # 1010s # #if GLIB_CHECK_VERSION(2, 44, 0) 1010s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1010s # #endif 1010s # 1010s # void org_project_useful_interface_proxy_new ( 1010s # GDBusConnection *connection, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1010s # GDBusConnection *connection, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # void org_project_useful_interface_proxy_new_for_bus ( 1010s # GBusType bus_type, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GAsyncReadyCallback callback, 1010s # gpointer user_data); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1010s # GAsyncResult *res, 1010s # GError **error); 1010s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1010s # GBusType bus_type, 1010s # GDBusProxyFlags flags, 1010s # const gchar *name, 1010s # const gchar *object_path, 1010s # GCancellable *cancellable, 1010s # GError **error); 1010s # 1010s # 1010s # /* ---- */ 1010s # 1010s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1010s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1010s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1010s # 1010s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1010s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1010s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1010s # 1010s # struct _OrgProjectUsefulInterfaceSkeleton 1010s # { 1010s # /*< private >*/ 1010s # GDBusInterfaceSkeleton parent_instance; 1010s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1010s # }; 1010s # 1010s # struct _OrgProjectUsefulInterfaceSkeletonClass 1010s # { 1010s # GDBusInterfaceSkeletonClass parent_class; 1010s # }; 1010s # 1010s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1010s # 1010s # #if GLIB_CHECK_VERSION(2, 44, 0) 1010s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1010s # #endif 1010s # 1010s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1010s # 1010s # 1010s # G_END_DECLS 1010s # 1010s # #endif /* __STDOUT__ */ 1010s # Error: 1011s ok 2 __main__.TestCodegen.test_dbus_types 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmpvwmktvog 1011s # /tmp/tmpvwmktvog/tmpgmrifcbj.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpgmrifcbj.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1011s # /tmp/tmpvwmktvog/tmpyiec505b.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpyiec505b.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1011s # /tmp/tmpvwmktvog/tmprnfcubzj.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmprnfcubzj.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1011s # /tmp/tmpvwmktvog/tmpbz_i0z5k.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpbz_i0z5k.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1011s # /tmp/tmpvwmktvog/tmpcbmozi1_.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpcbmozi1_.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1011s # /tmp/tmpvwmktvog/tmpwum65gki.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpwum65gki.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1011s # /tmp/tmpvwmktvog/tmpwrzcvyv9.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpwrzcvyv9.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1011s # /tmp/tmpvwmktvog/tmpirufn2jt.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpirufn2jt.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1011s # /tmp/tmpvwmktvog/tmpzjlqeici.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpzjlqeici.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1011s # /tmp/tmpvwmktvog/tmp15jwrixw.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmp15jwrixw.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: D-Bus maximum signature length of 255 exceeded. 1011s # /tmp/tmpvwmktvog/tmpe74h3rk4.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpe74h3rk4.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: D-Bus maximum signature length of 255 exceeded. 1011s # /tmp/tmpvwmktvog/tmp9synn_2h.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmp9synn_2h.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1011s # /tmp/tmpvwmktvog/tmp_uky_d8t.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmp_uky_d8t.xml', '--output', '-', '--body'] 1011s # Return code: 1 1011s # Output: 1011s # 1011s # Error: 1011s # ERROR: D-Bus maximum signature length of 255 exceeded. 1011s # /tmp/tmpvwmktvog/tmp4zxm8whz.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmp4zxm8whz.xml', '--output', '-', '--body'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifdef HAVE_CONFIG_H 1011s # # include "config.h" 1011s # #endif 1011s # 1011s # #include 1011s # #ifdef G_OS_UNIX 1011s # # include 1011s # #endif 1011s # 1011s # #ifdef G_ENABLE_DEBUG 1011s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1011s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1011s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1011s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1011s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1011s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1011s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1011s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1011s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1011s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1011s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1011s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1011s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1011s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1011s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1011s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1011s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1011s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1011s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1011s # #else /* !G_ENABLE_DEBUG */ 1011s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1011s # * Do not access GValues directly in your code. Instead, use the 1011s # * g_value_get_*() functions 1011s # */ 1011s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1011s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1011s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1011s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1011s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1011s # #endif /* !G_ENABLE_DEBUG */ 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusArgInfo parent_struct; 1011s # gboolean use_gvariant; 1011s # } _ExtendedGDBusArgInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusMethodInfo parent_struct; 1011s # const gchar *signal_name; 1011s # gboolean pass_fdlist; 1011s # } _ExtendedGDBusMethodInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusSignalInfo parent_struct; 1011s # const gchar *signal_name; 1011s # } _ExtendedGDBusSignalInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusPropertyInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # guint use_gvariant : 1; 1011s # guint emits_changed_signal : 1; 1011s # } _ExtendedGDBusPropertyInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusInterfaceInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # } _ExtendedGDBusInterfaceInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # guint prop_id; 1011s # GValue orig_value; /* the value before the change */ 1011s # } ChangedProperty; 1011s # 1011s # static void 1011s # _changed_property_free (ChangedProperty *data) 1011s # { 1011s # g_value_unset (&data->orig_value); 1011s # g_free (data); 1011s # } 1011s # 1011s # static gboolean 1011s # _g_strv_equal0 (gchar **a, gchar **b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # guint n; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # if (g_strv_length (a) != g_strv_length (b)) 1011s # goto out; 1011s # for (n = 0; a[n] != NULL; n++) 1011s # if (g_strcmp0 (a[n], b[n]) != 0) 1011s # goto out; 1011s # ret = TRUE; 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _g_variant_equal0 (GVariant *a, GVariant *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # ret = g_variant_equal (a, b); 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # G_GNUC_UNUSED static gboolean 1011s # _g_value_equal (const GValue *a, const GValue *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1011s # switch (G_VALUE_TYPE (a)) 1011s # { 1011s # case G_TYPE_BOOLEAN: 1011s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1011s # break; 1011s # case G_TYPE_UCHAR: 1011s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1011s # break; 1011s # case G_TYPE_INT: 1011s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1011s # break; 1011s # case G_TYPE_UINT: 1011s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1011s # break; 1011s # case G_TYPE_INT64: 1011s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1011s # break; 1011s # case G_TYPE_UINT64: 1011s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1011s # break; 1011s # case G_TYPE_DOUBLE: 1011s # { 1011s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1011s # gdouble da = g_value_get_double (a); 1011s # gdouble db = g_value_get_double (b); 1011s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1011s # } 1011s # break; 1011s # case G_TYPE_STRING: 1011s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1011s # break; 1011s # case G_TYPE_VARIANT: 1011s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1011s # break; 1011s # default: 1011s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1011s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1011s # else 1011s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1011s # break; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ 1011s # * Code for interface GoodTypes 1011s # * ------------------------------------------------------------------------ 1011s # */ 1011s # 1011s # /** 1011s # * SECTION:GoodTypes 1011s # * @title: GoodTypes 1011s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1011s # * 1011s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1011s # */ 1011s # 1011s # /* ---- Introspection data for GoodTypes ---- */ 1011s # 1011s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "GoodPropertyType", 1011s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1011s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1011s # NULL 1011s # }, 1011s # "good-property-type", 1011s # FALSE, 1011s # TRUE 1011s # }; 1011s # 1011s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1011s # { 1011s # &_good_types_property_info_good_property_type.parent_struct, 1011s # NULL 1011s # }; 1011s # 1011s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "GoodTypes", 1011s # NULL, 1011s # NULL, 1011s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1011s # NULL 1011s # }, 1011s # "good-types", 1011s # }; 1011s # 1011s # 1011s # /** 1011s # * good_types_interface_info: 1011s # * 1011s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1011s # * 1011s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1011s # */ 1011s # GDBusInterfaceInfo * 1011s # good_types_interface_info (void) 1011s # { 1011s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1011s # } 1011s # 1011s # /** 1011s # * good_types_override_properties: 1011s # * @klass: The class structure for a #GObject derived class. 1011s # * @property_id_begin: The property id to assign to the first overridden property. 1011s # * 1011s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1011s # * The properties are overridden in the order they are defined. 1011s # * 1011s # * Returns: The last property id. 1011s # */ 1011s # guint 1011s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1011s # { 1011s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1011s # return property_id_begin - 1; 1011s # } 1011s # 1011s # 1011s # 1011s # /** 1011s # * GoodTypes: 1011s # * 1011s # * Abstract interface type for the D-Bus interface GoodTypes. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesIface: 1011s # * @parent_iface: The parent interface. 1011s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1011s # * 1011s # * Virtual table for the D-Bus interface GoodTypes. 1011s # */ 1011s # 1011s # typedef GoodTypesIface GoodTypesInterface; 1011s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1011s # 1011s # static void 1011s # good_types_default_init (GoodTypesIface *iface) 1011s # { 1011s # /* GObject properties for D-Bus properties: */ 1011s # /** 1011s # * GoodTypes:good-property-type: 1011s # * 1011s # * Represents the D-Bus property "GoodPropertyType". 1011s # * 1011s # * 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. 1011s # */ 1011s # g_object_interface_install_property (iface, 1011s # 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)); 1011s # } 1011s # 1011s # /** 1011s # * good_types_get_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * 1011s # * Gets the value of the "GoodPropertyType" D-Bus property. 1011s # * 1011s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1011s # * 1011s # * 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. 1011s # * 1011s # * 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. 1011s # */ 1011s # GVariant * 1011s # good_types_get_good_property_type (GoodTypes *object) 1011s # { 1011s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1011s # 1011s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1011s # } 1011s # 1011s # /** 1011s # * good_types_dup_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * 1011s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1011s # * 1011s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1011s # * 1011s # * 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(). 1011s # */ 1011s # GVariant * 1011s # good_types_dup_good_property_type (GoodTypes *object) 1011s # { 1011s # GVariant *value; 1011s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1011s # return value; 1011s # } 1011s # 1011s # /** 1011s # * good_types_set_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * @value: The value to set. 1011s # * 1011s # * Sets the "GoodPropertyType" D-Bus property to @value. 1011s # * 1011s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1011s # */ 1011s # void 1011s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1011s # { 1011s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * GoodTypesProxy: 1011s # * 1011s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesProxyClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for GoodTypesProxy. 1011s # */ 1011s # 1011s # struct _GoodTypesProxyPrivate 1011s # { 1011s # GData *qdata; 1011s # }; 1011s # 1011s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1011s # G_ADD_PRIVATE (GoodTypesProxy) 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # good_types_proxy_finalize (GObject *object) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1011s # g_datalist_clear (&proxy->priv->qdata); 1011s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_get_property (GObject *object, 1011s # guint prop_id, 1011s # GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *variant; 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1011s # if (info->use_gvariant) 1011s # { 1011s # g_value_set_variant (value, variant); 1011s # } 1011s # else 1011s # { 1011s # if (variant != NULL) 1011s # g_dbus_gvariant_to_gvalue (variant, value); 1011s # } 1011s # if (variant != NULL) 1011s # g_variant_unref (variant); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1011s # GAsyncResult *res, 1011s # gpointer user_data) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info = user_data; 1011s # GError *error; 1011s # GVariant *_ret; 1011s # error = NULL; 1011s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1011s # if (!_ret) 1011s # { 1011s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1011s # info->parent_struct.name, 1011s # error->message, g_quark_to_string (error->domain), error->code); 1011s # g_error_free (error); 1011s # } 1011s # else 1011s # { 1011s # g_variant_unref (_ret); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_set_property (GObject *object, 1011s # guint prop_id, 1011s # const GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *variant; 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1011s # "org.freedesktop.DBus.Properties.Set", 1011s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1011s # g_variant_unref (variant); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_g_signal (GDBusProxy *proxy, 1011s # const gchar *sender_name G_GNUC_UNUSED, 1011s # const gchar *signal_name, 1011s # GVariant *parameters) 1011s # { 1011s # _ExtendedGDBusSignalInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # gsize n; 1011s # guint signal_id; 1011s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1011s # if (info == NULL) 1011s # return; 1011s # num_params = g_variant_n_children (parameters); 1011s # paramv = g_new0 (GValue, num_params + 1); 1011s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1011s # g_value_set_object (¶mv[0], proxy); 1011s # g_variant_iter_init (&iter, parameters); 1011s # n = 1; 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1011s # g_signal_emitv (paramv, signal_id, 0, NULL); 1011s # for (n = 0; n < num_params + 1; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1011s # GVariant *changed_properties, 1011s # const gchar *const *invalidated_properties) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1011s # guint n; 1011s # const gchar *key; 1011s # GVariantIter *iter; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # g_variant_get (changed_properties, "a{sv}", &iter); 1011s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1011s # g_datalist_remove_data (&proxy->priv->qdata, key); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # g_variant_iter_free (iter); 1011s # for (n = 0; invalidated_properties[n] != NULL; n++) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1011s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_proxy_get_good_property_type (GoodTypes *object) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1011s # GVariant *variant; 1011s # GVariant *value = NULL; 1011s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1011s # value = variant; 1011s # if (variant != NULL) 1011s # g_variant_unref (variant); 1011s # return value; 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_init (GoodTypesProxy *proxy) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1011s # #else 1011s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1011s # #endif 1011s # 1011s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusProxyClass *proxy_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = good_types_proxy_finalize; 1011s # gobject_class->get_property = good_types_proxy_get_property; 1011s # gobject_class->set_property = good_types_proxy_set_property; 1011s # 1011s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1011s # proxy_class->g_signal = good_types_proxy_g_signal; 1011s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1011s # 1011s # good_types_override_properties (gobject_class, 1); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_iface_init (GoodTypesIface *iface) 1011s # { 1011s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1011s # * 1011s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # good_types_proxy_new ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with good_types_proxy_new(). 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_sync: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_sync ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1011s # * 1011s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # good_types_proxy_new_for_bus ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_for_bus_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus_sync: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_for_bus_sync ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * GoodTypesSkeleton: 1011s # * 1011s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesSkeletonClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for GoodTypesSkeleton. 1011s # */ 1011s # 1011s # struct _GoodTypesSkeletonPrivate 1011s # { 1011s # GValue *properties; 1011s # GList *changed_properties; 1011s # GSource *changed_properties_idle_source; 1011s # GMainContext *context; 1011s # GMutex lock; 1011s # }; 1011s # 1011s # static void 1011s # _good_types_skeleton_handle_method_call ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name, 1011s # const gchar *method_name, 1011s # GVariant *parameters, 1011s # GDBusMethodInvocation *invocation, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # _ExtendedGDBusMethodInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # guint num_extra; 1011s # gsize n; 1011s # guint signal_id; 1011s # GValue return_value = G_VALUE_INIT; 1011s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1011s # g_assert (info != NULL); 1011s # num_params = g_variant_n_children (parameters); 1011s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1011s # n = 0; 1011s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1011s # g_value_set_object (¶mv[n++], skeleton); 1011s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1011s # g_value_set_object (¶mv[n++], invocation); 1011s # if (info->pass_fdlist) 1011s # { 1011s # #ifdef G_OS_UNIX 1011s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1011s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1011s # #else 1011s # g_assert_not_reached (); 1011s # #endif 1011s # } 1011s # g_variant_iter_init (&iter, parameters); 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1011s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1011s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1011s # if (!g_value_get_boolean (&return_value)) 1011s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1011s # g_value_unset (&return_value); 1011s # for (n = 0; n < num_params + num_extra; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static GVariant * 1011s # _good_types_skeleton_handle_get_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *ret; 1011s # ret = NULL; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # g_value_init (&value, pspec->value_type); 1011s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_value_unset (&value); 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _good_types_skeleton_handle_set_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GVariant *variant, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # gboolean ret; 1011s # ret = FALSE; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # if (info->use_gvariant) 1011s # g_value_set_variant (&value, variant); 1011s # else 1011s # g_dbus_gvariant_to_gvalue (variant, &value); 1011s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # g_value_unset (&value); 1011s # ret = TRUE; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1011s # { 1011s # _good_types_skeleton_handle_method_call, 1011s # _good_types_skeleton_handle_get_property, 1011s # _good_types_skeleton_handle_set_property, 1011s # {NULL} 1011s # }; 1011s # 1011s # static GDBusInterfaceInfo * 1011s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return good_types_interface_info (); 1011s # } 1011s # 1011s # static GDBusInterfaceVTable * 1011s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1011s # 1011s # GVariantBuilder builder; 1011s # guint n; 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #else 1011s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #endif 1011s # if (_good_types_interface_info.parent_struct.properties == NULL) 1011s # goto out; 1011s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1011s # { 1011s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1011s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1011s # { 1011s # GVariant *value; 1011s # 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); 1011s # if (value != NULL) 1011s # { 1011s # g_variant_take_ref (value); 1011s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1011s # g_variant_unref (value); 1011s # } 1011s # } 1011s # } 1011s # out: 1011s # return g_variant_builder_end (&builder); 1011s # } 1011s # 1011s # static gboolean _good_types_emit_changed (gpointer user_data); 1011s # 1011s # static void 1011s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1011s # gboolean emit_changed = FALSE; 1011s # 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # { 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # skeleton->priv->changed_properties_idle_source = NULL; 1011s # emit_changed = TRUE; 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # 1011s # if (emit_changed) 1011s # _good_types_emit_changed (skeleton); 1011s # } 1011s # 1011s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_ADD_PRIVATE (GoodTypesSkeleton) 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # good_types_skeleton_finalize (GObject *object) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # guint n; 1011s # for (n = 0; n < 1; n++) 1011s # g_value_unset (&skeleton->priv->properties[n]); 1011s # g_free (skeleton->priv->properties); 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # g_main_context_unref (skeleton->priv->context); 1011s # g_mutex_clear (&skeleton->priv->lock); 1011s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_get_property (GObject *object, 1011s # guint prop_id, 1011s # GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # } 1011s # 1011s # static gboolean 1011s # _good_types_emit_changed (gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GList *l; 1011s # GVariantBuilder builder; 1011s # GVariantBuilder invalidated_builder; 1011s # guint num_changes; 1011s # 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1011s # #else 1011s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1011s # #endif 1011s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1011s # { 1011s # ChangedProperty *cp = l->data; 1011s # GVariant *variant; 1011s # const GValue *cur_value; 1011s # 1011s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1011s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1011s # { 1011s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1011s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1011s # g_variant_unref (variant); 1011s # num_changes++; 1011s # } 1011s # } 1011s # if (num_changes > 0) 1011s # { 1011s # GList *connections, *ll; 1011s # GVariant *signal_variant; 1011s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1011s # &builder, &invalidated_builder)); 1011s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1011s # for (ll = connections; ll != NULL; ll = ll->next) 1011s # { 1011s # GDBusConnection *connection = ll->data; 1011s # 1011s # g_dbus_connection_emit_signal (connection, 1011s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1011s # "org.freedesktop.DBus.Properties", 1011s # "PropertiesChanged", 1011s # signal_variant, 1011s # NULL); 1011s # } 1011s # g_variant_unref (signal_variant); 1011s # g_list_free_full (connections, g_object_unref); 1011s # } 1011s # else 1011s # { 1011s # g_variant_builder_clear (&builder); 1011s # g_variant_builder_clear (&invalidated_builder); 1011s # } 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # skeleton->priv->changed_properties = NULL; 1011s # skeleton->priv->changed_properties_idle_source = NULL; 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # return FALSE; 1011s # } 1011s # 1011s # static void 1011s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1011s # { 1011s # ChangedProperty *cp; 1011s # GList *l; 1011s # cp = NULL; 1011s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1011s # { 1011s # ChangedProperty *i_cp = l->data; 1011s # if (i_cp->info == info) 1011s # { 1011s # cp = i_cp; 1011s # break; 1011s # } 1011s # } 1011s # if (cp == NULL) 1011s # { 1011s # cp = g_new0 (ChangedProperty, 1); 1011s # cp->prop_id = prop_id; 1011s # cp->info = info; 1011s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1011s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1011s # g_value_copy (orig_value, &cp->orig_value); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_notify (GObject *object, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # if (skeleton->priv->changed_properties != NULL && 1011s # skeleton->priv->changed_properties_idle_source == NULL) 1011s # { 1011s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1011s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1011s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1011s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1011s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1011s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_set_property (GObject *object, 1011s # guint prop_id, 1011s # const GValue *value, 1011s # GParamSpec *pspec) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # g_object_freeze_notify (object); 1011s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1011s # { 1011s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1011s # info->emits_changed_signal) 1011s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1011s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1011s # g_object_notify_by_pspec (object, pspec); 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # g_object_thaw_notify (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1011s # #else 1011s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1011s # #endif 1011s # 1011s # g_mutex_init (&skeleton->priv->lock); 1011s # skeleton->priv->context = g_main_context_ref_thread_default (); 1011s # skeleton->priv->properties = g_new0 (GValue, 1); 1011s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # GVariant *value; 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # return value; 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusInterfaceSkeletonClass *skeleton_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = good_types_skeleton_finalize; 1011s # gobject_class->get_property = good_types_skeleton_get_property; 1011s # gobject_class->set_property = good_types_skeleton_set_property; 1011s # gobject_class->notify = good_types_skeleton_notify; 1011s # 1011s # 1011s # good_types_override_properties (gobject_class, 1); 1011s # 1011s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1011s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1011s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1011s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1011s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1011s # { 1011s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1011s # } 1011s # 1011s # /** 1011s # * good_types_skeleton_new: 1011s # * 1011s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1011s # */ 1011s # GoodTypes * 1011s # good_types_skeleton_new (void) 1011s # { 1011s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1011s # } 1011s # Error: 1011s # 1011s # /tmp/tmpvwmktvog/tmpppidrvk6.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpppidrvk6.xml', '--output', '-', '--body'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifdef HAVE_CONFIG_H 1011s # # include "config.h" 1011s # #endif 1011s # 1011s # #include 1011s # #ifdef G_OS_UNIX 1011s # # include 1011s # #endif 1011s # 1011s # #ifdef G_ENABLE_DEBUG 1011s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1011s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1011s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1011s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1011s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1011s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1011s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1011s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1011s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1011s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1011s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1011s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1011s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1011s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1011s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1011s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1011s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1011s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1011s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1011s # #else /* !G_ENABLE_DEBUG */ 1011s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1011s # * Do not access GValues directly in your code. Instead, use the 1011s # * g_value_get_*() functions 1011s # */ 1011s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1011s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1011s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1011s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1011s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1011s # #endif /* !G_ENABLE_DEBUG */ 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusArgInfo parent_struct; 1011s # gboolean use_gvariant; 1011s # } _ExtendedGDBusArgInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusMethodInfo parent_struct; 1011s # const gchar *signal_name; 1011s # gboolean pass_fdlist; 1011s # } _ExtendedGDBusMethodInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusSignalInfo parent_struct; 1011s # const gchar *signal_name; 1011s # } _ExtendedGDBusSignalInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusPropertyInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # guint use_gvariant : 1; 1011s # guint emits_changed_signal : 1; 1011s # } _ExtendedGDBusPropertyInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusInterfaceInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # } _ExtendedGDBusInterfaceInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # guint prop_id; 1011s # GValue orig_value; /* the value before the change */ 1011s # } ChangedProperty; 1011s # 1011s # static void 1011s # _changed_property_free (ChangedProperty *data) 1011s # { 1011s # g_value_unset (&data->orig_value); 1011s # g_free (data); 1011s # } 1011s # 1011s # static gboolean 1011s # _g_strv_equal0 (gchar **a, gchar **b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # guint n; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # if (g_strv_length (a) != g_strv_length (b)) 1011s # goto out; 1011s # for (n = 0; a[n] != NULL; n++) 1011s # if (g_strcmp0 (a[n], b[n]) != 0) 1011s # goto out; 1011s # ret = TRUE; 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _g_variant_equal0 (GVariant *a, GVariant *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # ret = g_variant_equal (a, b); 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # G_GNUC_UNUSED static gboolean 1011s # _g_value_equal (const GValue *a, const GValue *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1011s # switch (G_VALUE_TYPE (a)) 1011s # { 1011s # case G_TYPE_BOOLEAN: 1011s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1011s # break; 1011s # case G_TYPE_UCHAR: 1011s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1011s # break; 1011s # case G_TYPE_INT: 1011s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1011s # break; 1011s # case G_TYPE_UINT: 1011s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1011s # break; 1011s # case G_TYPE_INT64: 1011s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1011s # break; 1011s # case G_TYPE_UINT64: 1011s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1011s # break; 1011s # case G_TYPE_DOUBLE: 1011s # { 1011s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1011s # gdouble da = g_value_get_double (a); 1011s # gdouble db = g_value_get_double (b); 1011s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1011s # } 1011s # break; 1011s # case G_TYPE_STRING: 1011s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1011s # break; 1011s # case G_TYPE_VARIANT: 1011s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1011s # break; 1011s # default: 1011s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1011s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1011s # else 1011s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1011s # break; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ 1011s # * Code for interface GoodTypes 1011s # * ------------------------------------------------------------------------ 1011s # */ 1011s # 1011s # /** 1011s # * SECTION:GoodTypes 1011s # * @title: GoodTypes 1011s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1011s # * 1011s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1011s # */ 1011s # 1011s # /* ---- Introspection data for GoodTypes ---- */ 1011s # 1011s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "GoodPropertyType", 1011s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1011s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1011s # NULL 1011s # }, 1011s # "good-property-type", 1011s # FALSE, 1011s # TRUE 1011s # }; 1011s # 1011s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1011s # { 1011s # &_good_types_property_info_good_property_type.parent_struct, 1011s # NULL 1011s # }; 1011s # 1011s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "GoodTypes", 1011s # NULL, 1011s # NULL, 1011s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1011s # NULL 1011s # }, 1011s # "good-types", 1011s # }; 1011s # 1011s # 1011s # /** 1011s # * good_types_interface_info: 1011s # * 1011s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1011s # * 1011s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1011s # */ 1011s # GDBusInterfaceInfo * 1011s # good_types_interface_info (void) 1011s # { 1011s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1011s # } 1011s # 1011s # /** 1011s # * good_types_override_properties: 1011s # * @klass: The class structure for a #GObject derived class. 1011s # * @property_id_begin: The property id to assign to the first overridden property. 1011s # * 1011s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1011s # * The properties are overridden in the order they are defined. 1011s # * 1011s # * Returns: The last property id. 1011s # */ 1011s # guint 1011s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1011s # { 1011s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1011s # return property_id_begin - 1; 1011s # } 1011s # 1011s # 1011s # 1011s # /** 1011s # * GoodTypes: 1011s # * 1011s # * Abstract interface type for the D-Bus interface GoodTypes. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesIface: 1011s # * @parent_iface: The parent interface. 1011s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1011s # * 1011s # * Virtual table for the D-Bus interface GoodTypes. 1011s # */ 1011s # 1011s # typedef GoodTypesIface GoodTypesInterface; 1011s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1011s # 1011s # static void 1011s # good_types_default_init (GoodTypesIface *iface) 1011s # { 1011s # /* GObject properties for D-Bus properties: */ 1011s # /** 1011s # * GoodTypes:good-property-type: 1011s # * 1011s # * Represents the D-Bus property "GoodPropertyType". 1011s # * 1011s # * 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. 1011s # */ 1011s # g_object_interface_install_property (iface, 1011s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1011s # } 1011s # 1011s # /** 1011s # * good_types_get_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * 1011s # * Gets the value of the "GoodPropertyType" D-Bus property. 1011s # * 1011s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1011s # * 1011s # * 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. 1011s # * 1011s # * 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. 1011s # */ 1011s # GVariant * 1011s # good_types_get_good_property_type (GoodTypes *object) 1011s # { 1011s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1011s # 1011s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1011s # } 1011s # 1011s # /** 1011s # * good_types_dup_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * 1011s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1011s # * 1011s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1011s # * 1011s # * 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(). 1011s # */ 1011s # GVariant * 1011s # good_types_dup_good_property_type (GoodTypes *object) 1011s # { 1011s # GVariant *value; 1011s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1011s # return value; 1011s # } 1011s # 1011s # /** 1011s # * good_types_set_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * @value: The value to set. 1011s # * 1011s # * Sets the "GoodPropertyType" D-Bus property to @value. 1011s # * 1011s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1011s # */ 1011s # void 1011s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1011s # { 1011s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * GoodTypesProxy: 1011s # * 1011s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesProxyClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for GoodTypesProxy. 1011s # */ 1011s # 1011s # struct _GoodTypesProxyPrivate 1011s # { 1011s # GData *qdata; 1011s # }; 1011s # 1011s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1011s # G_ADD_PRIVATE (GoodTypesProxy) 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # good_types_proxy_finalize (GObject *object) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1011s # g_datalist_clear (&proxy->priv->qdata); 1011s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_get_property (GObject *object, 1011s # guint prop_id, 1011s # GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *variant; 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1011s # if (info->use_gvariant) 1011s # { 1011s # g_value_set_variant (value, variant); 1011s # } 1011s # else 1011s # { 1011s # if (variant != NULL) 1011s # g_dbus_gvariant_to_gvalue (variant, value); 1011s # } 1011s # if (variant != NULL) 1011s # g_variant_unref (variant); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1011s # GAsyncResult *res, 1011s # gpointer user_data) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info = user_data; 1011s # GError *error; 1011s # GVariant *_ret; 1011s # error = NULL; 1011s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1011s # if (!_ret) 1011s # { 1011s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1011s # info->parent_struct.name, 1011s # error->message, g_quark_to_string (error->domain), error->code); 1011s # g_error_free (error); 1011s # } 1011s # else 1011s # { 1011s # g_variant_unref (_ret); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_set_property (GObject *object, 1011s # guint prop_id, 1011s # const GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *variant; 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1011s # "org.freedesktop.DBus.Properties.Set", 1011s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1011s # g_variant_unref (variant); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_g_signal (GDBusProxy *proxy, 1011s # const gchar *sender_name G_GNUC_UNUSED, 1011s # const gchar *signal_name, 1011s # GVariant *parameters) 1011s # { 1011s # _ExtendedGDBusSignalInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # gsize n; 1011s # guint signal_id; 1011s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1011s # if (info == NULL) 1011s # return; 1011s # num_params = g_variant_n_children (parameters); 1011s # paramv = g_new0 (GValue, num_params + 1); 1011s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1011s # g_value_set_object (¶mv[0], proxy); 1011s # g_variant_iter_init (&iter, parameters); 1011s # n = 1; 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1011s # g_signal_emitv (paramv, signal_id, 0, NULL); 1011s # for (n = 0; n < num_params + 1; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1011s # GVariant *changed_properties, 1011s # const gchar *const *invalidated_properties) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1011s # guint n; 1011s # const gchar *key; 1011s # GVariantIter *iter; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # g_variant_get (changed_properties, "a{sv}", &iter); 1011s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1011s # g_datalist_remove_data (&proxy->priv->qdata, key); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # g_variant_iter_free (iter); 1011s # for (n = 0; invalidated_properties[n] != NULL; n++) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1011s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_proxy_get_good_property_type (GoodTypes *object) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1011s # GVariant *variant; 1011s # GVariant *value = NULL; 1011s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1011s # value = variant; 1011s # if (variant != NULL) 1011s # g_variant_unref (variant); 1011s # return value; 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_init (GoodTypesProxy *proxy) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1011s # #else 1011s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1011s # #endif 1011s # 1011s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusProxyClass *proxy_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = good_types_proxy_finalize; 1011s # gobject_class->get_property = good_types_proxy_get_property; 1011s # gobject_class->set_property = good_types_proxy_set_property; 1011s # 1011s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1011s # proxy_class->g_signal = good_types_proxy_g_signal; 1011s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1011s # 1011s # good_types_override_properties (gobject_class, 1); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_iface_init (GoodTypesIface *iface) 1011s # { 1011s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1011s # * 1011s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # good_types_proxy_new ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with good_types_proxy_new(). 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_sync: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_sync ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1011s # * 1011s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # good_types_proxy_new_for_bus ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_for_bus_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus_sync: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_for_bus_sync ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * GoodTypesSkeleton: 1011s # * 1011s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesSkeletonClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for GoodTypesSkeleton. 1011s # */ 1011s # 1011s # struct _GoodTypesSkeletonPrivate 1011s # { 1011s # GValue *properties; 1011s # GList *changed_properties; 1011s # GSource *changed_properties_idle_source; 1011s # GMainContext *context; 1011s # GMutex lock; 1011s # }; 1011s # 1011s # static void 1011s # _good_types_skeleton_handle_method_call ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name, 1011s # const gchar *method_name, 1011s # GVariant *parameters, 1011s # GDBusMethodInvocation *invocation, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # _ExtendedGDBusMethodInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # guint num_extra; 1011s # gsize n; 1011s # guint signal_id; 1011s # GValue return_value = G_VALUE_INIT; 1011s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1011s # g_assert (info != NULL); 1011s # num_params = g_variant_n_children (parameters); 1011s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1011s # n = 0; 1011s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1011s # g_value_set_object (¶mv[n++], skeleton); 1011s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1011s # g_value_set_object (¶mv[n++], invocation); 1011s # if (info->pass_fdlist) 1011s # { 1011s # #ifdef G_OS_UNIX 1011s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1011s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1011s # #else 1011s # g_assert_not_reached (); 1011s # #endif 1011s # } 1011s # g_variant_iter_init (&iter, parameters); 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1011s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1011s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1011s # if (!g_value_get_boolean (&return_value)) 1011s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1011s # g_value_unset (&return_value); 1011s # for (n = 0; n < num_params + num_extra; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static GVariant * 1011s # _good_types_skeleton_handle_get_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *ret; 1011s # ret = NULL; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # g_value_init (&value, pspec->value_type); 1011s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_value_unset (&value); 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _good_types_skeleton_handle_set_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GVariant *variant, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # gboolean ret; 1011s # ret = FALSE; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # if (info->use_gvariant) 1011s # g_value_set_variant (&value, variant); 1011s # else 1011s # g_dbus_gvariant_to_gvalue (variant, &value); 1011s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # g_value_unset (&value); 1011s # ret = TRUE; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1011s # { 1011s # _good_types_skeleton_handle_method_call, 1011s # _good_types_skeleton_handle_get_property, 1011s # _good_types_skeleton_handle_set_property, 1011s # {NULL} 1011s # }; 1011s # 1011s # static GDBusInterfaceInfo * 1011s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return good_types_interface_info (); 1011s # } 1011s # 1011s # static GDBusInterfaceVTable * 1011s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1011s # 1011s # GVariantBuilder builder; 1011s # guint n; 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #else 1011s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #endif 1011s # if (_good_types_interface_info.parent_struct.properties == NULL) 1011s # goto out; 1011s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1011s # { 1011s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1011s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1011s # { 1011s # GVariant *value; 1011s # 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); 1011s # if (value != NULL) 1011s # { 1011s # g_variant_take_ref (value); 1011s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1011s # g_variant_unref (value); 1011s # } 1011s # } 1011s # } 1011s # out: 1011s # return g_variant_builder_end (&builder); 1011s # } 1011s # 1011s # static gboolean _good_types_emit_changed (gpointer user_data); 1011s # 1011s # static void 1011s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1011s # gboolean emit_changed = FALSE; 1011s # 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # { 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # skeleton->priv->changed_properties_idle_source = NULL; 1011s # emit_changed = TRUE; 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # 1011s # if (emit_changed) 1011s # _good_types_emit_changed (skeleton); 1011s # } 1011s # 1011s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_ADD_PRIVATE (GoodTypesSkeleton) 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # good_types_skeleton_finalize (GObject *object) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # guint n; 1011s # for (n = 0; n < 1; n++) 1011s # g_value_unset (&skeleton->priv->properties[n]); 1011s # g_free (skeleton->priv->properties); 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # g_main_context_unref (skeleton->priv->context); 1011s # g_mutex_clear (&skeleton->priv->lock); 1011s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_get_property (GObject *object, 1011s # guint prop_id, 1011s # GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # } 1011s # 1011s # static gboolean 1011s # _good_types_emit_changed (gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GList *l; 1011s # GVariantBuilder builder; 1011s # GVariantBuilder invalidated_builder; 1011s # guint num_changes; 1011s # 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1011s # #else 1011s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1011s # #endif 1011s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1011s # { 1011s # ChangedProperty *cp = l->data; 1011s # GVariant *variant; 1011s # const GValue *cur_value; 1011s # 1011s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1011s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1011s # { 1011s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1011s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1011s # g_variant_unref (variant); 1011s # num_changes++; 1011s # } 1011s # } 1011s # if (num_changes > 0) 1011s # { 1011s # GList *connections, *ll; 1011s # GVariant *signal_variant; 1011s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1011s # &builder, &invalidated_builder)); 1011s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1011s # for (ll = connections; ll != NULL; ll = ll->next) 1011s # { 1011s # GDBusConnection *connection = ll->data; 1011s # 1011s # g_dbus_connection_emit_signal (connection, 1011s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1011s # "org.freedesktop.DBus.Properties", 1011s # "PropertiesChanged", 1011s # signal_variant, 1011s # NULL); 1011s # } 1011s # g_variant_unref (signal_variant); 1011s # g_list_free_full (connections, g_object_unref); 1011s # } 1011s # else 1011s # { 1011s # g_variant_builder_clear (&builder); 1011s # g_variant_builder_clear (&invalidated_builder); 1011s # } 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # skeleton->priv->changed_properties = NULL; 1011s # skeleton->priv->changed_properties_idle_source = NULL; 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # return FALSE; 1011s # } 1011s # 1011s # static void 1011s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1011s # { 1011s # ChangedProperty *cp; 1011s # GList *l; 1011s # cp = NULL; 1011s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1011s # { 1011s # ChangedProperty *i_cp = l->data; 1011s # if (i_cp->info == info) 1011s # { 1011s # cp = i_cp; 1011s # break; 1011s # } 1011s # } 1011s # if (cp == NULL) 1011s # { 1011s # cp = g_new0 (ChangedProperty, 1); 1011s # cp->prop_id = prop_id; 1011s # cp->info = info; 1011s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1011s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1011s # g_value_copy (orig_value, &cp->orig_value); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_notify (GObject *object, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # if (skeleton->priv->changed_properties != NULL && 1011s # skeleton->priv->changed_properties_idle_source == NULL) 1011s # { 1011s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1011s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1011s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1011s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1011s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1011s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_set_property (GObject *object, 1011s # guint prop_id, 1011s # const GValue *value, 1011s # GParamSpec *pspec) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # g_object_freeze_notify (object); 1011s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1011s # { 1011s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1011s # info->emits_changed_signal) 1011s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1011s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1011s # g_object_notify_by_pspec (object, pspec); 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # g_object_thaw_notify (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1011s # #else 1011s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1011s # #endif 1011s # 1011s # g_mutex_init (&skeleton->priv->lock); 1011s # skeleton->priv->context = g_main_context_ref_thread_default (); 1011s # skeleton->priv->properties = g_new0 (GValue, 1); 1011s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # GVariant *value; 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # return value; 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusInterfaceSkeletonClass *skeleton_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = good_types_skeleton_finalize; 1011s # gobject_class->get_property = good_types_skeleton_get_property; 1011s # gobject_class->set_property = good_types_skeleton_set_property; 1011s # gobject_class->notify = good_types_skeleton_notify; 1011s # 1011s # 1011s # good_types_override_properties (gobject_class, 1); 1011s # 1011s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1011s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1011s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1011s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1011s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1011s # { 1011s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1011s # } 1011s # 1011s # /** 1011s # * good_types_skeleton_new: 1011s # * 1011s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1011s # */ 1011s # GoodTypes * 1011s # good_types_skeleton_new (void) 1011s # { 1011s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1011s # } 1011s # Error: 1011s # 1011s # /tmp/tmpvwmktvog/tmpey7h8uzg.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvwmktvog/tmpey7h8uzg.xml', '--output', '-', '--body'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifdef HAVE_CONFIG_H 1011s # # include "config.h" 1011s # #endif 1011s # 1011s # #include 1011s # #ifdef G_OS_UNIX 1011s # # include 1011s # #endif 1011s # 1011s # #ifdef G_ENABLE_DEBUG 1011s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1011s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1011s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1011s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1011s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1011s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1011s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1011s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1011s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1011s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1011s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1011s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1011s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1011s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1011s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1011s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1011s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1011s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1011s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1011s # #else /* !G_ENABLE_DEBUG */ 1011s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1011s # * Do not access GValues directly in your code. Instead, use the 1011s # * g_value_get_*() functions 1011s # */ 1011s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1011s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1011s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1011s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1011s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1011s # #endif /* !G_ENABLE_DEBUG */ 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusArgInfo parent_struct; 1011s # gboolean use_gvariant; 1011s # } _ExtendedGDBusArgInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusMethodInfo parent_struct; 1011s # const gchar *signal_name; 1011s # gboolean pass_fdlist; 1011s # } _ExtendedGDBusMethodInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusSignalInfo parent_struct; 1011s # const gchar *signal_name; 1011s # } _ExtendedGDBusSignalInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusPropertyInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # guint use_gvariant : 1; 1011s # guint emits_changed_signal : 1; 1011s # } _ExtendedGDBusPropertyInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusInterfaceInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # } _ExtendedGDBusInterfaceInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # guint prop_id; 1011s # GValue orig_value; /* the value before the change */ 1011s # } ChangedProperty; 1011s # 1011s # static void 1011s # _changed_property_free (ChangedProperty *data) 1011s # { 1011s # g_value_unset (&data->orig_value); 1011s # g_free (data); 1011s # } 1011s # 1011s # static gboolean 1011s # _g_strv_equal0 (gchar **a, gchar **b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # guint n; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # if (g_strv_length (a) != g_strv_length (b)) 1011s # goto out; 1011s # for (n = 0; a[n] != NULL; n++) 1011s # if (g_strcmp0 (a[n], b[n]) != 0) 1011s # goto out; 1011s # ret = TRUE; 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _g_variant_equal0 (GVariant *a, GVariant *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # ret = g_variant_equal (a, b); 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # G_GNUC_UNUSED static gboolean 1011s # _g_value_equal (const GValue *a, const GValue *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1011s # switch (G_VALUE_TYPE (a)) 1011s # { 1011s # case G_TYPE_BOOLEAN: 1011s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1011s # break; 1011s # case G_TYPE_UCHAR: 1011s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1011s # break; 1011s # case G_TYPE_INT: 1011s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1011s # break; 1011s # case G_TYPE_UINT: 1011s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1011s # break; 1011s # case G_TYPE_INT64: 1011s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1011s # break; 1011s # case G_TYPE_UINT64: 1011s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1011s # break; 1011s # case G_TYPE_DOUBLE: 1011s # { 1011s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1011s # gdouble da = g_value_get_double (a); 1011s # gdouble db = g_value_get_double (b); 1011s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1011s # } 1011s # break; 1011s # case G_TYPE_STRING: 1011s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1011s # break; 1011s # case G_TYPE_VARIANT: 1011s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1011s # break; 1011s # default: 1011s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1011s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1011s # else 1011s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1011s # break; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ 1011s # * Code for interface GoodTypes 1011s # * ------------------------------------------------------------------------ 1011s # */ 1011s # 1011s # /** 1011s # * SECTION:GoodTypes 1011s # * @title: GoodTypes 1011s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1011s # * 1011s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1011s # */ 1011s # 1011s # /* ---- Introspection data for GoodTypes ---- */ 1011s # 1011s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "GoodPropertyType", 1011s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1011s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1011s # NULL 1011s # }, 1011s # "good-property-type", 1011s # FALSE, 1011s # TRUE 1011s # }; 1011s # 1011s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1011s # { 1011s # &_good_types_property_info_good_property_type.parent_struct, 1011s # NULL 1011s # }; 1011s # 1011s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "GoodTypes", 1011s # NULL, 1011s # NULL, 1011s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1011s # NULL 1011s # }, 1011s # "good-types", 1011s # }; 1011s # 1011s # 1011s # /** 1011s # * good_types_interface_info: 1011s # * 1011s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1011s # * 1011s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1011s # */ 1011s # GDBusInterfaceInfo * 1011s # good_types_interface_info (void) 1011s # { 1011s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1011s # } 1011s # 1011s # /** 1011s # * good_types_override_properties: 1011s # * @klass: The class structure for a #GObject derived class. 1011s # * @property_id_begin: The property id to assign to the first overridden property. 1011s # * 1011s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1011s # * The properties are overridden in the order they are defined. 1011s # * 1011s # * Returns: The last property id. 1011s # */ 1011s # guint 1011s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1011s # { 1011s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1011s # return property_id_begin - 1; 1011s # } 1011s # 1011s # 1011s # 1011s # /** 1011s # * GoodTypes: 1011s # * 1011s # * Abstract interface type for the D-Bus interface GoodTypes. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesIface: 1011s # * @parent_iface: The parent interface. 1011s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1011s # * 1011s # * Virtual table for the D-Bus interface GoodTypes. 1011s # */ 1011s # 1011s # typedef GoodTypesIface GoodTypesInterface; 1011s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1011s # 1011s # static void 1011s # good_types_default_init (GoodTypesIface *iface) 1011s # { 1011s # /* GObject properties for D-Bus properties: */ 1011s # /** 1011s # * GoodTypes:good-property-type: 1011s # * 1011s # * Represents the D-Bus property "GoodPropertyType". 1011s # * 1011s # * 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. 1011s # */ 1011s # g_object_interface_install_property (iface, 1011s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1011s # } 1011s # 1011s # /** 1011s # * good_types_get_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * 1011s # * Gets the value of the "GoodPropertyType" D-Bus property. 1011s # * 1011s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1011s # * 1011s # * 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. 1011s # * 1011s # * 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. 1011s # */ 1011s # GVariant * 1011s # good_types_get_good_property_type (GoodTypes *object) 1011s # { 1011s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1011s # 1011s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1011s # } 1011s # 1011s # /** 1011s # * good_types_dup_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * 1011s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1011s # * 1011s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1011s # * 1011s # * 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(). 1011s # */ 1011s # GVariant * 1011s # good_types_dup_good_property_type (GoodTypes *object) 1011s # { 1011s # GVariant *value; 1011s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1011s # return value; 1011s # } 1011s # 1011s # /** 1011s # * good_types_set_good_property_type: (skip) 1011s # * @object: A GoodTypes. 1011s # * @value: The value to set. 1011s # * 1011s # * Sets the "GoodPropertyType" D-Bus property to @value. 1011s # * 1011s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1011s # */ 1011s # void 1011s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1011s # { 1011s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * GoodTypesProxy: 1011s # * 1011s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesProxyClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for GoodTypesProxy. 1011s # */ 1011s # 1011s # struct _GoodTypesProxyPrivate 1011s # { 1011s # GData *qdata; 1011s # }; 1011s # 1011s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1011s # G_ADD_PRIVATE (GoodTypesProxy) 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # good_types_proxy_finalize (GObject *object) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1011s # g_datalist_clear (&proxy->priv->qdata); 1011s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_get_property (GObject *object, 1011s # guint prop_id, 1011s # GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *variant; 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1011s # if (info->use_gvariant) 1011s # { 1011s # g_value_set_variant (value, variant); 1011s # } 1011s # else 1011s # { 1011s # if (variant != NULL) 1011s # g_dbus_gvariant_to_gvalue (variant, value); 1011s # } 1011s # if (variant != NULL) 1011s # g_variant_unref (variant); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1011s # GAsyncResult *res, 1011s # gpointer user_data) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info = user_data; 1011s # GError *error; 1011s # GVariant *_ret; 1011s # error = NULL; 1011s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1011s # if (!_ret) 1011s # { 1011s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1011s # info->parent_struct.name, 1011s # error->message, g_quark_to_string (error->domain), error->code); 1011s # g_error_free (error); 1011s # } 1011s # else 1011s # { 1011s # g_variant_unref (_ret); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_set_property (GObject *object, 1011s # guint prop_id, 1011s # const GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *variant; 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1011s # "org.freedesktop.DBus.Properties.Set", 1011s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1011s # g_variant_unref (variant); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_g_signal (GDBusProxy *proxy, 1011s # const gchar *sender_name G_GNUC_UNUSED, 1011s # const gchar *signal_name, 1011s # GVariant *parameters) 1011s # { 1011s # _ExtendedGDBusSignalInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # gsize n; 1011s # guint signal_id; 1011s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1011s # if (info == NULL) 1011s # return; 1011s # num_params = g_variant_n_children (parameters); 1011s # paramv = g_new0 (GValue, num_params + 1); 1011s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1011s # g_value_set_object (¶mv[0], proxy); 1011s # g_variant_iter_init (&iter, parameters); 1011s # n = 1; 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1011s # g_signal_emitv (paramv, signal_id, 0, NULL); 1011s # for (n = 0; n < num_params + 1; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1011s # GVariant *changed_properties, 1011s # const gchar *const *invalidated_properties) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1011s # guint n; 1011s # const gchar *key; 1011s # GVariantIter *iter; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # g_variant_get (changed_properties, "a{sv}", &iter); 1011s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1011s # g_datalist_remove_data (&proxy->priv->qdata, key); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # g_variant_iter_free (iter); 1011s # for (n = 0; invalidated_properties[n] != NULL; n++) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1011s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_proxy_get_good_property_type (GoodTypes *object) 1011s # { 1011s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1011s # GVariant *variant; 1011s # GVariant *value = NULL; 1011s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1011s # value = variant; 1011s # if (variant != NULL) 1011s # g_variant_unref (variant); 1011s # return value; 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_init (GoodTypesProxy *proxy) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1011s # #else 1011s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1011s # #endif 1011s # 1011s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusProxyClass *proxy_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = good_types_proxy_finalize; 1011s # gobject_class->get_property = good_types_proxy_get_property; 1011s # gobject_class->set_property = good_types_proxy_set_property; 1011s # 1011s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1011s # proxy_class->g_signal = good_types_proxy_g_signal; 1011s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1011s # 1011s # good_types_override_properties (gobject_class, 1); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # good_types_proxy_iface_init (GoodTypesIface *iface) 1011s # { 1011s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1011s # * 1011s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # good_types_proxy_new ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with good_types_proxy_new(). 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_sync: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_sync ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1011s # * 1011s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # good_types_proxy_new_for_bus ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_for_bus_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * good_types_proxy_new_for_bus_sync: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # GoodTypes * 1011s # good_types_proxy_new_for_bus_sync ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return GOOD_TYPES (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * GoodTypesSkeleton: 1011s # * 1011s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * GoodTypesSkeletonClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for GoodTypesSkeleton. 1011s # */ 1011s # 1011s # struct _GoodTypesSkeletonPrivate 1011s # { 1011s # GValue *properties; 1011s # GList *changed_properties; 1011s # GSource *changed_properties_idle_source; 1011s # GMainContext *context; 1011s # GMutex lock; 1011s # }; 1011s # 1011s # static void 1011s # _good_types_skeleton_handle_method_call ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name, 1011s # const gchar *method_name, 1011s # GVariant *parameters, 1011s # GDBusMethodInvocation *invocation, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # _ExtendedGDBusMethodInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # guint num_extra; 1011s # gsize n; 1011s # guint signal_id; 1011s # GValue return_value = G_VALUE_INIT; 1011s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1011s # g_assert (info != NULL); 1011s # num_params = g_variant_n_children (parameters); 1011s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1011s # n = 0; 1011s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1011s # g_value_set_object (¶mv[n++], skeleton); 1011s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1011s # g_value_set_object (¶mv[n++], invocation); 1011s # if (info->pass_fdlist) 1011s # { 1011s # #ifdef G_OS_UNIX 1011s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1011s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1011s # #else 1011s # g_assert_not_reached (); 1011s # #endif 1011s # } 1011s # g_variant_iter_init (&iter, parameters); 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1011s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1011s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1011s # if (!g_value_get_boolean (&return_value)) 1011s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1011s # g_value_unset (&return_value); 1011s # for (n = 0; n < num_params + num_extra; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static GVariant * 1011s # _good_types_skeleton_handle_get_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *ret; 1011s # ret = NULL; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # g_value_init (&value, pspec->value_type); 1011s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_value_unset (&value); 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _good_types_skeleton_handle_set_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GVariant *variant, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # gboolean ret; 1011s # ret = FALSE; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # if (info->use_gvariant) 1011s # g_value_set_variant (&value, variant); 1011s # else 1011s # g_dbus_gvariant_to_gvalue (variant, &value); 1011s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # g_value_unset (&value); 1011s # ret = TRUE; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1011s # { 1011s # _good_types_skeleton_handle_method_call, 1011s # _good_types_skeleton_handle_get_property, 1011s # _good_types_skeleton_handle_set_property, 1011s # {NULL} 1011s # }; 1011s # 1011s # static GDBusInterfaceInfo * 1011s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return good_types_interface_info (); 1011s # } 1011s # 1011s # static GDBusInterfaceVTable * 1011s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1011s # 1011s # GVariantBuilder builder; 1011s # guint n; 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #else 1011s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #endif 1011s # if (_good_types_interface_info.parent_struct.properties == NULL) 1011s # goto out; 1011s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1011s # { 1011s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1011s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1011s # { 1011s # GVariant *value; 1011s # 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); 1011s # if (value != NULL) 1011s # { 1011s # g_variant_take_ref (value); 1011s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1011s # g_variant_unref (value); 1011s # } 1011s # } 1011s # } 1011s # out: 1011s # return g_variant_builder_end (&builder); 1011s # } 1011s # 1011s # static gboolean _good_types_emit_changed (gpointer user_data); 1011s # 1011s # static void 1011s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1011s # gboolean emit_changed = FALSE; 1011s # 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # { 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # skeleton->priv->changed_properties_idle_source = NULL; 1011s # emit_changed = TRUE; 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # 1011s # if (emit_changed) 1011s # _good_types_emit_changed (skeleton); 1011s # } 1011s # 1011s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_ADD_PRIVATE (GoodTypesSkeleton) 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # good_types_skeleton_finalize (GObject *object) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # guint n; 1011s # for (n = 0; n < 1; n++) 1011s # g_value_unset (&skeleton->priv->properties[n]); 1011s # g_free (skeleton->priv->properties); 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # g_main_context_unref (skeleton->priv->context); 1011s # g_mutex_clear (&skeleton->priv->lock); 1011s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_get_property (GObject *object, 1011s # guint prop_id, 1011s # GValue *value, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # } 1011s # 1011s # static gboolean 1011s # _good_types_emit_changed (gpointer user_data) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1011s # GList *l; 1011s # GVariantBuilder builder; 1011s # GVariantBuilder invalidated_builder; 1011s # guint num_changes; 1011s # 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1011s # #else 1011s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1011s # #endif 1011s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1011s # { 1011s # ChangedProperty *cp = l->data; 1011s # GVariant *variant; 1011s # const GValue *cur_value; 1011s # 1011s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1011s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1011s # { 1011s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1011s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1011s # g_variant_unref (variant); 1011s # num_changes++; 1011s # } 1011s # } 1011s # if (num_changes > 0) 1011s # { 1011s # GList *connections, *ll; 1011s # GVariant *signal_variant; 1011s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1011s # &builder, &invalidated_builder)); 1011s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1011s # for (ll = connections; ll != NULL; ll = ll->next) 1011s # { 1011s # GDBusConnection *connection = ll->data; 1011s # 1011s # g_dbus_connection_emit_signal (connection, 1011s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1011s # "org.freedesktop.DBus.Properties", 1011s # "PropertiesChanged", 1011s # signal_variant, 1011s # NULL); 1011s # } 1011s # g_variant_unref (signal_variant); 1011s # g_list_free_full (connections, g_object_unref); 1011s # } 1011s # else 1011s # { 1011s # g_variant_builder_clear (&builder); 1011s # g_variant_builder_clear (&invalidated_builder); 1011s # } 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # skeleton->priv->changed_properties = NULL; 1011s # skeleton->priv->changed_properties_idle_source = NULL; 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # return FALSE; 1011s # } 1011s # 1011s # static void 1011s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1011s # { 1011s # ChangedProperty *cp; 1011s # GList *l; 1011s # cp = NULL; 1011s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1011s # { 1011s # ChangedProperty *i_cp = l->data; 1011s # if (i_cp->info == info) 1011s # { 1011s # cp = i_cp; 1011s # break; 1011s # } 1011s # } 1011s # if (cp == NULL) 1011s # { 1011s # cp = g_new0 (ChangedProperty, 1); 1011s # cp->prop_id = prop_id; 1011s # cp->info = info; 1011s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1011s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1011s # g_value_copy (orig_value, &cp->orig_value); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_notify (GObject *object, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # if (skeleton->priv->changed_properties != NULL && 1011s # skeleton->priv->changed_properties_idle_source == NULL) 1011s # { 1011s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1011s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1011s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1011s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1011s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1011s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_set_property (GObject *object, 1011s # guint prop_id, 1011s # const GValue *value, 1011s # GParamSpec *pspec) 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1011s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # g_object_freeze_notify (object); 1011s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1011s # { 1011s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1011s # info->emits_changed_signal) 1011s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1011s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1011s # g_object_notify_by_pspec (object, pspec); 1011s # } 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # g_object_thaw_notify (object); 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1011s # #else 1011s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1011s # #endif 1011s # 1011s # g_mutex_init (&skeleton->priv->lock); 1011s # skeleton->priv->context = g_main_context_ref_thread_default (); 1011s # skeleton->priv->properties = g_new0 (GValue, 1); 1011s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1011s # } 1011s # 1011s # static GVariant * 1011s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1011s # { 1011s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1011s # GVariant *value; 1011s # g_mutex_lock (&skeleton->priv->lock); 1011s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1011s # g_mutex_unlock (&skeleton->priv->lock); 1011s # return value; 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusInterfaceSkeletonClass *skeleton_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = good_types_skeleton_finalize; 1011s # gobject_class->get_property = good_types_skeleton_get_property; 1011s # gobject_class->set_property = good_types_skeleton_set_property; 1011s # gobject_class->notify = good_types_skeleton_notify; 1011s # 1011s # 1011s # good_types_override_properties (gobject_class, 1); 1011s # 1011s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1011s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1011s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1011s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1011s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1011s # { 1011s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1011s # } 1011s # 1011s # /** 1011s # * good_types_skeleton_new: 1011s # * 1011s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1011s # * 1011s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1011s # */ 1011s # GoodTypes * 1011s # good_types_skeleton_new (void) 1011s # { 1011s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1011s # } 1011s # Error: 1011s ok 3 __main__.TestCodegen.test_empty_interface_body 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmp07ii7b6o 1011s # /tmp/tmp07ii7b6o/tmpw_macly2.xml: 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp07ii7b6o/tmpw_macly2.xml', '--output', '-', '--body'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifdef HAVE_CONFIG_H 1011s # # include "config.h" 1011s # #endif 1011s # 1011s # #include 1011s # #ifdef G_OS_UNIX 1011s # # include 1011s # #endif 1011s # 1011s # #ifdef G_ENABLE_DEBUG 1011s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1011s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1011s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1011s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1011s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1011s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1011s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1011s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1011s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1011s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1011s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1011s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1011s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1011s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1011s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1011s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1011s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1011s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1011s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1011s # #else /* !G_ENABLE_DEBUG */ 1011s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1011s # * Do not access GValues directly in your code. Instead, use the 1011s # * g_value_get_*() functions 1011s # */ 1011s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1011s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1011s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1011s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1011s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1011s # #endif /* !G_ENABLE_DEBUG */ 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusArgInfo parent_struct; 1011s # gboolean use_gvariant; 1011s # } _ExtendedGDBusArgInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusMethodInfo parent_struct; 1011s # const gchar *signal_name; 1011s # gboolean pass_fdlist; 1011s # } _ExtendedGDBusMethodInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusSignalInfo parent_struct; 1011s # const gchar *signal_name; 1011s # } _ExtendedGDBusSignalInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusPropertyInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # guint use_gvariant : 1; 1011s # guint emits_changed_signal : 1; 1011s # } _ExtendedGDBusPropertyInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusInterfaceInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # } _ExtendedGDBusInterfaceInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # guint prop_id; 1011s # GValue orig_value; /* the value before the change */ 1011s # } ChangedProperty; 1011s # 1011s # static void 1011s # _changed_property_free (ChangedProperty *data) 1011s # { 1011s # g_value_unset (&data->orig_value); 1011s # g_free (data); 1011s # } 1011s # 1011s # static gboolean 1011s # _g_strv_equal0 (gchar **a, gchar **b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # guint n; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # if (g_strv_length (a) != g_strv_length (b)) 1011s # goto out; 1011s # for (n = 0; a[n] != NULL; n++) 1011s # if (g_strcmp0 (a[n], b[n]) != 0) 1011s # goto out; 1011s # ret = TRUE; 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _g_variant_equal0 (GVariant *a, GVariant *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # ret = g_variant_equal (a, b); 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # G_GNUC_UNUSED static gboolean 1011s # _g_value_equal (const GValue *a, const GValue *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1011s # switch (G_VALUE_TYPE (a)) 1011s # { 1011s # case G_TYPE_BOOLEAN: 1011s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1011s # break; 1011s # case G_TYPE_UCHAR: 1011s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1011s # break; 1011s # case G_TYPE_INT: 1011s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1011s # break; 1011s # case G_TYPE_UINT: 1011s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1011s # break; 1011s # case G_TYPE_INT64: 1011s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1011s # break; 1011s # case G_TYPE_UINT64: 1011s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1011s # break; 1011s # case G_TYPE_DOUBLE: 1011s # { 1011s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1011s # gdouble da = g_value_get_double (a); 1011s # gdouble db = g_value_get_double (b); 1011s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1011s # } 1011s # break; 1011s # case G_TYPE_STRING: 1011s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1011s # break; 1011s # case G_TYPE_VARIANT: 1011s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1011s # break; 1011s # default: 1011s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1011s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1011s # else 1011s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1011s # break; 1011s # } 1011s # return ret; 1011s # } 1011s # Error: 1011s ok 4 __main__.TestCodegen.test_empty_interface_header 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmp42lrf09_ 1011s # /tmp/tmp42lrf09_/tmpc6x4rsvl.xml: 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp42lrf09_/tmpc6x4rsvl.xml', '--output', '-', '--header'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifndef __STDOUT__ 1011s # #define __STDOUT__ 1011s # 1011s # #include 1011s # 1011s # G_BEGIN_DECLS 1011s # 1011s # 1011s # G_END_DECLS 1011s # 1011s # #endif /* __STDOUT__ */ 1011s # Error: 1011s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmp6q8h8oxj 1011s # /tmp/tmp6q8h8oxj/tmpb84rm5it.xml: 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp6q8h8oxj/tmpb84rm5it.xml', '--output', '-', '--interface-info-body'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifdef HAVE_CONFIG_H 1011s # # include "config.h" 1011s # #endif 1011s # 1011s # #include 1011s # Error: 1011s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmp92py_rnf 1011s # /tmp/tmp92py_rnf/tmp3nmi0cmg.xml: 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp92py_rnf/tmp3nmi0cmg.xml', '--output', '-', '--interface-info-header'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifndef __STDOUT__ 1011s # #define __STDOUT__ 1011s # 1011s # #include 1011s # 1011s # G_BEGIN_DECLS 1011s # 1011s # 1011s # G_END_DECLS 1011s # 1011s # #endif /* __STDOUT__ */ 1011s # Error: 1011s ok 7 __main__.TestCodegen.test_generate_docbook 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmpmjygcy95 1011s # /tmp/tmpmjygcy95/tmp9o8gwj5c.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmjygcy95/tmp9o8gwj5c.xml', '--generate-docbook', 'test'] 1011s # Return code: 0 1011s # Output: 1011s # 1011s # Error: 1011s ok 8 __main__.TestCodegen.test_generate_md 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmpf46vvhqj 1011s # /tmp/tmpf46vvhqj/tmp_mbant04.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpf46vvhqj/tmp_mbant04.xml', '--generate-md', 'test'] 1011s # Return code: 0 1011s # Output: 1011s # 1011s # Error: 1011s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1011s # gdbus-codegen: /usr/bin/gdbus-codegen 1011s # tmpdir: /tmp/tmpqaohfpgx 1011s # /tmp/tmpqaohfpgx/tmp1zx4ggzy.xml: 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # 1011s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqaohfpgx/tmp1zx4ggzy.xml', '--output', '-', '--body'] 1011s # Return code: 0 1011s # Output: 1011s # /* 1011s # * This file is generated by gdbus-codegen, do not modify it. 1011s # * 1011s # * The license of this code is the same as for the D-Bus interface description 1011s # * it was derived from. Note that it links to GLib, so must comply with the 1011s # * LGPL linking clauses. 1011s # */ 1011s # 1011s # #ifdef HAVE_CONFIG_H 1011s # # include "config.h" 1011s # #endif 1011s # 1011s # #include 1011s # #ifdef G_OS_UNIX 1011s # # include 1011s # #endif 1011s # 1011s # #ifdef G_ENABLE_DEBUG 1011s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1011s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1011s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1011s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1011s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1011s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1011s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1011s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1011s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1011s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1011s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1011s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1011s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1011s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1011s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1011s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1011s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1011s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1011s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1011s # #else /* !G_ENABLE_DEBUG */ 1011s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1011s # * Do not access GValues directly in your code. Instead, use the 1011s # * g_value_get_*() functions 1011s # */ 1011s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1011s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1011s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1011s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1011s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1011s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1011s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1011s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1011s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1011s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1011s # #endif /* !G_ENABLE_DEBUG */ 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusArgInfo parent_struct; 1011s # gboolean use_gvariant; 1011s # } _ExtendedGDBusArgInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusMethodInfo parent_struct; 1011s # const gchar *signal_name; 1011s # gboolean pass_fdlist; 1011s # } _ExtendedGDBusMethodInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusSignalInfo parent_struct; 1011s # const gchar *signal_name; 1011s # } _ExtendedGDBusSignalInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusPropertyInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # guint use_gvariant : 1; 1011s # guint emits_changed_signal : 1; 1011s # } _ExtendedGDBusPropertyInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # GDBusInterfaceInfo parent_struct; 1011s # const gchar *hyphen_name; 1011s # } _ExtendedGDBusInterfaceInfo; 1011s # 1011s # typedef struct 1011s # { 1011s # const _ExtendedGDBusPropertyInfo *info; 1011s # guint prop_id; 1011s # GValue orig_value; /* the value before the change */ 1011s # } ChangedProperty; 1011s # 1011s # static void 1011s # _changed_property_free (ChangedProperty *data) 1011s # { 1011s # g_value_unset (&data->orig_value); 1011s # g_free (data); 1011s # } 1011s # 1011s # static gboolean 1011s # _g_strv_equal0 (gchar **a, gchar **b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # guint n; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # if (g_strv_length (a) != g_strv_length (b)) 1011s # goto out; 1011s # for (n = 0; a[n] != NULL; n++) 1011s # if (g_strcmp0 (a[n], b[n]) != 0) 1011s # goto out; 1011s # ret = TRUE; 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _g_variant_equal0 (GVariant *a, GVariant *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # if (a == NULL && b == NULL) 1011s # { 1011s # ret = TRUE; 1011s # goto out; 1011s # } 1011s # if (a == NULL || b == NULL) 1011s # goto out; 1011s # ret = g_variant_equal (a, b); 1011s # out: 1011s # return ret; 1011s # } 1011s # 1011s # G_GNUC_UNUSED static gboolean 1011s # _g_value_equal (const GValue *a, const GValue *b) 1011s # { 1011s # gboolean ret = FALSE; 1011s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1011s # switch (G_VALUE_TYPE (a)) 1011s # { 1011s # case G_TYPE_BOOLEAN: 1011s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1011s # break; 1011s # case G_TYPE_UCHAR: 1011s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1011s # break; 1011s # case G_TYPE_INT: 1011s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1011s # break; 1011s # case G_TYPE_UINT: 1011s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1011s # break; 1011s # case G_TYPE_INT64: 1011s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1011s # break; 1011s # case G_TYPE_UINT64: 1011s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1011s # break; 1011s # case G_TYPE_DOUBLE: 1011s # { 1011s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1011s # gdouble da = g_value_get_double (a); 1011s # gdouble db = g_value_get_double (b); 1011s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1011s # } 1011s # break; 1011s # case G_TYPE_STRING: 1011s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1011s # break; 1011s # case G_TYPE_VARIANT: 1011s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1011s # break; 1011s # default: 1011s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1011s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1011s # else 1011s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1011s # break; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static void 1011s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1011s # GClosure *closure, 1011s # GValue *return_value, 1011s # unsigned int n_param_values, 1011s # const GValue *param_values, 1011s # void *invocation_hint G_GNUC_UNUSED, 1011s # void *marshal_data) 1011s # { 1011s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1011s # (void *data1, 1011s # GDBusMethodInvocation *arg_method_invocation, 1011s # void *data2); 1011s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1011s # GCClosure *cc = (GCClosure*) closure; 1011s # void *data1, *data2; 1011s # gboolean v_return; 1011s # 1011s # g_return_if_fail (return_value != NULL); 1011s # g_return_if_fail (n_param_values == 2); 1011s # 1011s # if (G_CCLOSURE_SWAP_DATA (closure)) 1011s # { 1011s # data1 = closure->data; 1011s # data2 = g_value_peek_pointer (param_values + 0); 1011s # } 1011s # else 1011s # { 1011s # data1 = g_value_peek_pointer (param_values + 0); 1011s # data2 = closure->data; 1011s # } 1011s # 1011s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1011s # (marshal_data ? marshal_data : cc->callback); 1011s # 1011s # v_return = 1011s # callback (data1, 1011s # g_marshal_value_peek_object (param_values + 1), 1011s # data2); 1011s # 1011s # g_value_set_boolean (return_value, v_return); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ 1011s # * Code for interface org.project.CallableIface 1011s # * ------------------------------------------------------------------------ 1011s # */ 1011s # 1011s # /** 1011s # * SECTION:OrgProjectCallableIface 1011s # * @title: OrgProjectCallableIface 1011s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1011s # * 1011s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1011s # */ 1011s # 1011s # /* ---- Introspection data for org.project.CallableIface ---- */ 1011s # 1011s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "SimpleMethod", 1011s # NULL, 1011s # NULL, 1011s # NULL 1011s # }, 1011s # "handle-simple-method", 1011s # FALSE 1011s # }; 1011s # 1011s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1011s # { 1011s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1011s # NULL 1011s # }; 1011s # 1011s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "org.project.CallableIface", 1011s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1011s # NULL, 1011s # NULL, 1011s # NULL 1011s # }, 1011s # "org-project-callable-iface", 1011s # }; 1011s # 1011s # 1011s # /** 1011s # * org_project_callable_iface_interface_info: 1011s # * 1011s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1011s # * 1011s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1011s # */ 1011s # GDBusInterfaceInfo * 1011s # org_project_callable_iface_interface_info (void) 1011s # { 1011s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_override_properties: 1011s # * @klass: The class structure for a #GObject derived class. 1011s # * @property_id_begin: The property id to assign to the first overridden property. 1011s # * 1011s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1011s # * The properties are overridden in the order they are defined. 1011s # * 1011s # * Returns: The last property id. 1011s # */ 1011s # guint 1011s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1011s # { 1011s # return property_id_begin - 1; 1011s # } 1011s # 1011s # 1011s # inline static void 1011s # org_project_callable_iface_method_marshal_simple_method ( 1011s # GClosure *closure, 1011s # GValue *return_value, 1011s # unsigned int n_param_values, 1011s # const GValue *param_values, 1011s # void *invocation_hint, 1011s # void *marshal_data) 1011s # { 1011s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1011s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1011s # } 1011s # 1011s # 1011s # /** 1011s # * OrgProjectCallableIface: 1011s # * 1011s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1011s # */ 1011s # 1011s # /** 1011s # * OrgProjectCallableIfaceIface: 1011s # * @parent_iface: The parent interface. 1011s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1011s # * 1011s # * Virtual table for the D-Bus interface org.project.CallableIface. 1011s # */ 1011s # 1011s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1011s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1011s # 1011s # static void 1011s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1011s # { 1011s # /* GObject signals for incoming D-Bus method calls: */ 1011s # /** 1011s # * OrgProjectCallableIface::handle-simple-method: 1011s # * @object: A #OrgProjectCallableIface. 1011s # * @invocation: A #GDBusMethodInvocation. 1011s # * 1011s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1011s # * 1011s # * 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. 1011s # * 1011s # * 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. 1011s # */ 1011s # g_signal_new ("handle-simple-method", 1011s # G_TYPE_FROM_INTERFACE (iface), 1011s # G_SIGNAL_RUN_LAST, 1011s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1011s # g_signal_accumulator_true_handled, 1011s # NULL, 1011s # org_project_callable_iface_method_marshal_simple_method, 1011s # G_TYPE_BOOLEAN, 1011s # 1, 1011s # G_TYPE_DBUS_METHOD_INVOCATION); 1011s # 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_call_simple_method: 1011s # * @proxy: A #OrgProjectCallableIfaceProxy. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1011s # * 1011s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1011s # */ 1011s # void 1011s # org_project_callable_iface_call_simple_method ( 1011s # OrgProjectCallableIface *proxy, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1011s # "SimpleMethod", 1011s # g_variant_new ("()"), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # cancellable, 1011s # callback, 1011s # user_data); 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_call_simple_method_finish: 1011s # * @proxy: A #OrgProjectCallableIfaceProxy. 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1011s # * @error: Return location for error or %NULL. 1011s # * 1011s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1011s # * 1011s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1011s # */ 1011s # gboolean 1011s # org_project_callable_iface_call_simple_method_finish ( 1011s # OrgProjectCallableIface *proxy, 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GVariant *_ret; 1011s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1011s # if (_ret == NULL) 1011s # goto _out; 1011s # g_variant_get (_ret, 1011s # "()"); 1011s # g_variant_unref (_ret); 1011s # _out: 1011s # return _ret != NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_call_simple_method_sync: 1011s # * @proxy: A #OrgProjectCallableIfaceProxy. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL. 1011s # * 1011s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1011s # * 1011s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1011s # * 1011s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1011s # */ 1011s # gboolean 1011s # org_project_callable_iface_call_simple_method_sync ( 1011s # OrgProjectCallableIface *proxy, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GVariant *_ret; 1011s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1011s # "SimpleMethod", 1011s # g_variant_new ("()"), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # cancellable, 1011s # error); 1011s # if (_ret == NULL) 1011s # goto _out; 1011s # g_variant_get (_ret, 1011s # "()"); 1011s # g_variant_unref (_ret); 1011s # _out: 1011s # return _ret != NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_complete_simple_method: 1011s # * @object: A #OrgProjectCallableIface. 1011s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1011s # * 1011s # * 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. 1011s # * 1011s # * This method will free @invocation, you cannot use it afterwards. 1011s # */ 1011s # void 1011s # org_project_callable_iface_complete_simple_method ( 1011s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1011s # GDBusMethodInvocation *invocation) 1011s # { 1011s # g_dbus_method_invocation_return_value (invocation, 1011s # g_variant_new ("()")); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * OrgProjectCallableIfaceProxy: 1011s # * 1011s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * OrgProjectCallableIfaceProxyClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for #OrgProjectCallableIfaceProxy. 1011s # */ 1011s # 1011s # struct _OrgProjectCallableIfaceProxyPrivate 1011s # { 1011s # GData *qdata; 1011s # }; 1011s # 1011s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1011s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # org_project_callable_iface_proxy_finalize (GObject *object) 1011s # { 1011s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1011s # g_datalist_clear (&proxy->priv->qdata); 1011s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1011s # guint prop_id G_GNUC_UNUSED, 1011s # GValue *value G_GNUC_UNUSED, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1011s # guint prop_id G_GNUC_UNUSED, 1011s # const GValue *value G_GNUC_UNUSED, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1011s # const gchar *sender_name G_GNUC_UNUSED, 1011s # const gchar *signal_name, 1011s # GVariant *parameters) 1011s # { 1011s # _ExtendedGDBusSignalInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # gsize n; 1011s # guint signal_id; 1011s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1011s # if (info == NULL) 1011s # return; 1011s # num_params = g_variant_n_children (parameters); 1011s # paramv = g_new0 (GValue, num_params + 1); 1011s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1011s # g_value_set_object (¶mv[0], proxy); 1011s # g_variant_iter_init (&iter, parameters); 1011s # n = 1; 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1011s # g_signal_emitv (paramv, signal_id, 0, NULL); 1011s # for (n = 0; n < num_params + 1; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1011s # GVariant *changed_properties, 1011s # const gchar *const *invalidated_properties) 1011s # { 1011s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1011s # guint n; 1011s # const gchar *key; 1011s # GVariantIter *iter; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # g_variant_get (changed_properties, "a{sv}", &iter); 1011s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1011s # g_datalist_remove_data (&proxy->priv->qdata, key); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # g_variant_iter_free (iter); 1011s # for (n = 0; invalidated_properties[n] != NULL; n++) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1011s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1011s # #else 1011s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1011s # #endif 1011s # 1011s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusProxyClass *proxy_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1011s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1011s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1011s # 1011s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1011s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1011s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_proxy_new: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1011s # * 1011s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # org_project_callable_iface_proxy_new ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_proxy_new_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectCallableIface * 1011s # org_project_callable_iface_proxy_new_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_proxy_new_sync: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectCallableIface * 1011s # org_project_callable_iface_proxy_new_sync ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /** 1011s # * org_project_callable_iface_proxy_new_for_bus: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1011s # * 1011s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # org_project_callable_iface_proxy_new_for_bus ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_proxy_new_for_bus_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectCallableIface * 1011s # org_project_callable_iface_proxy_new_for_bus_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_proxy_new_for_bus_sync: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectCallableIface * 1011s # org_project_callable_iface_proxy_new_for_bus_sync ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * OrgProjectCallableIfaceSkeleton: 1011s # * 1011s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * OrgProjectCallableIfaceSkeletonClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1011s # */ 1011s # 1011s # struct _OrgProjectCallableIfaceSkeletonPrivate 1011s # { 1011s # GValue *properties; 1011s # GList *changed_properties; 1011s # GSource *changed_properties_idle_source; 1011s # GMainContext *context; 1011s # GMutex lock; 1011s # }; 1011s # 1011s # static void 1011s # _org_project_callable_iface_skeleton_handle_method_call ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name, 1011s # const gchar *method_name, 1011s # GVariant *parameters, 1011s # GDBusMethodInvocation *invocation, 1011s # gpointer user_data) 1011s # { 1011s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1011s # _ExtendedGDBusMethodInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # guint num_extra; 1011s # gsize n; 1011s # guint signal_id; 1011s # GValue return_value = G_VALUE_INIT; 1011s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1011s # g_assert (info != NULL); 1011s # num_params = g_variant_n_children (parameters); 1011s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1011s # n = 0; 1011s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1011s # g_value_set_object (¶mv[n++], skeleton); 1011s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1011s # g_value_set_object (¶mv[n++], invocation); 1011s # if (info->pass_fdlist) 1011s # { 1011s # #ifdef G_OS_UNIX 1011s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1011s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1011s # #else 1011s # g_assert_not_reached (); 1011s # #endif 1011s # } 1011s # g_variant_iter_init (&iter, parameters); 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1011s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1011s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1011s # if (!g_value_get_boolean (&return_value)) 1011s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1011s # g_value_unset (&return_value); 1011s # for (n = 0; n < num_params + num_extra; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static GVariant * 1011s # _org_project_callable_iface_skeleton_handle_get_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *ret; 1011s # ret = NULL; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # g_value_init (&value, pspec->value_type); 1011s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_value_unset (&value); 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _org_project_callable_iface_skeleton_handle_set_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GVariant *variant, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # gboolean ret; 1011s # ret = FALSE; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # if (info->use_gvariant) 1011s # g_value_set_variant (&value, variant); 1011s # else 1011s # g_dbus_gvariant_to_gvalue (variant, &value); 1011s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # g_value_unset (&value); 1011s # ret = TRUE; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1011s # { 1011s # _org_project_callable_iface_skeleton_handle_method_call, 1011s # _org_project_callable_iface_skeleton_handle_get_property, 1011s # _org_project_callable_iface_skeleton_handle_set_property, 1011s # {NULL} 1011s # }; 1011s # 1011s # static GDBusInterfaceInfo * 1011s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return org_project_callable_iface_interface_info (); 1011s # } 1011s # 1011s # static GDBusInterfaceVTable * 1011s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1011s # } 1011s # 1011s # static GVariant * 1011s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1011s # 1011s # GVariantBuilder builder; 1011s # guint n; 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #else 1011s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #endif 1011s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1011s # goto out; 1011s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1011s # { 1011s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1011s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1011s # { 1011s # GVariant *value; 1011s # 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); 1011s # if (value != NULL) 1011s # { 1011s # g_variant_take_ref (value); 1011s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1011s # g_variant_unref (value); 1011s # } 1011s # } 1011s # } 1011s # out: 1011s # return g_variant_builder_end (&builder); 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # org_project_callable_iface_skeleton_finalize (GObject *object) 1011s # { 1011s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # g_main_context_unref (skeleton->priv->context); 1011s # g_mutex_clear (&skeleton->priv->lock); 1011s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1011s # #else 1011s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1011s # #endif 1011s # 1011s # g_mutex_init (&skeleton->priv->lock); 1011s # skeleton->priv->context = g_main_context_ref_thread_default (); 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusInterfaceSkeletonClass *skeleton_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1011s # 1011s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1011s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1011s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1011s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1011s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # /** 1011s # * org_project_callable_iface_skeleton_new: 1011s # * 1011s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1011s # */ 1011s # OrgProjectCallableIface * 1011s # org_project_callable_iface_skeleton_new (void) 1011s # { 1011s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ 1011s # * Code for interface org.project.OtherCallableIface 1011s # * ------------------------------------------------------------------------ 1011s # */ 1011s # 1011s # /** 1011s # * SECTION:OrgProjectOtherCallableIface 1011s # * @title: OrgProjectOtherCallableIface 1011s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1011s # * 1011s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1011s # */ 1011s # 1011s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1011s # 1011s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "SimpleMethod", 1011s # NULL, 1011s # NULL, 1011s # NULL 1011s # }, 1011s # "handle-simple-method", 1011s # FALSE 1011s # }; 1011s # 1011s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1011s # { 1011s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1011s # NULL 1011s # }; 1011s # 1011s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1011s # { 1011s # { 1011s # -1, 1011s # (gchar *) "org.project.OtherCallableIface", 1011s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1011s # NULL, 1011s # NULL, 1011s # NULL 1011s # }, 1011s # "org-project-other-callable-iface", 1011s # }; 1011s # 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_interface_info: 1011s # * 1011s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1011s # * 1011s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1011s # */ 1011s # GDBusInterfaceInfo * 1011s # org_project_other_callable_iface_interface_info (void) 1011s # { 1011s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_override_properties: 1011s # * @klass: The class structure for a #GObject derived class. 1011s # * @property_id_begin: The property id to assign to the first overridden property. 1011s # * 1011s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1011s # * The properties are overridden in the order they are defined. 1011s # * 1011s # * Returns: The last property id. 1011s # */ 1011s # guint 1011s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1011s # { 1011s # return property_id_begin - 1; 1011s # } 1011s # 1011s # 1011s # inline static void 1011s # org_project_other_callable_iface_method_marshal_simple_method ( 1011s # GClosure *closure, 1011s # GValue *return_value, 1011s # unsigned int n_param_values, 1011s # const GValue *param_values, 1011s # void *invocation_hint, 1011s # void *marshal_data) 1011s # { 1011s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1011s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1011s # } 1011s # 1011s # 1011s # /** 1011s # * OrgProjectOtherCallableIface: 1011s # * 1011s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1011s # */ 1011s # 1011s # /** 1011s # * OrgProjectOtherCallableIfaceIface: 1011s # * @parent_iface: The parent interface. 1011s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1011s # * 1011s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1011s # */ 1011s # 1011s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1011s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1011s # 1011s # static void 1011s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1011s # { 1011s # /* GObject signals for incoming D-Bus method calls: */ 1011s # /** 1011s # * OrgProjectOtherCallableIface::handle-simple-method: 1011s # * @object: A #OrgProjectOtherCallableIface. 1011s # * @invocation: A #GDBusMethodInvocation. 1011s # * 1011s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1011s # * 1011s # * 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. 1011s # * 1011s # * 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. 1011s # */ 1011s # g_signal_new ("handle-simple-method", 1011s # G_TYPE_FROM_INTERFACE (iface), 1011s # G_SIGNAL_RUN_LAST, 1011s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1011s # g_signal_accumulator_true_handled, 1011s # NULL, 1011s # org_project_other_callable_iface_method_marshal_simple_method, 1011s # G_TYPE_BOOLEAN, 1011s # 1, 1011s # G_TYPE_DBUS_METHOD_INVOCATION); 1011s # 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_call_simple_method: 1011s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1011s # * 1011s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1011s # */ 1011s # void 1011s # org_project_other_callable_iface_call_simple_method ( 1011s # OrgProjectOtherCallableIface *proxy, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1011s # "SimpleMethod", 1011s # g_variant_new ("()"), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # cancellable, 1011s # callback, 1011s # user_data); 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_call_simple_method_finish: 1011s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1011s # * @error: Return location for error or %NULL. 1011s # * 1011s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1011s # * 1011s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1011s # */ 1011s # gboolean 1011s # org_project_other_callable_iface_call_simple_method_finish ( 1011s # OrgProjectOtherCallableIface *proxy, 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GVariant *_ret; 1011s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1011s # if (_ret == NULL) 1011s # goto _out; 1011s # g_variant_get (_ret, 1011s # "()"); 1011s # g_variant_unref (_ret); 1011s # _out: 1011s # return _ret != NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_call_simple_method_sync: 1011s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL. 1011s # * 1011s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1011s # * 1011s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1011s # * 1011s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1011s # */ 1011s # gboolean 1011s # org_project_other_callable_iface_call_simple_method_sync ( 1011s # OrgProjectOtherCallableIface *proxy, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GVariant *_ret; 1011s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1011s # "SimpleMethod", 1011s # g_variant_new ("()"), 1011s # G_DBUS_CALL_FLAGS_NONE, 1011s # -1, 1011s # cancellable, 1011s # error); 1011s # if (_ret == NULL) 1011s # goto _out; 1011s # g_variant_get (_ret, 1011s # "()"); 1011s # g_variant_unref (_ret); 1011s # _out: 1011s # return _ret != NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_complete_simple_method: 1011s # * @object: A #OrgProjectOtherCallableIface. 1011s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1011s # * 1011s # * 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. 1011s # * 1011s # * This method will free @invocation, you cannot use it afterwards. 1011s # */ 1011s # void 1011s # org_project_other_callable_iface_complete_simple_method ( 1011s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1011s # GDBusMethodInvocation *invocation) 1011s # { 1011s # g_dbus_method_invocation_return_value (invocation, 1011s # g_variant_new ("()")); 1011s # } 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * OrgProjectOtherCallableIfaceProxy: 1011s # * 1011s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * OrgProjectOtherCallableIfaceProxyClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1011s # */ 1011s # 1011s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1011s # { 1011s # GData *qdata; 1011s # }; 1011s # 1011s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1011s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1011s # { 1011s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1011s # g_datalist_clear (&proxy->priv->qdata); 1011s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1011s # guint prop_id G_GNUC_UNUSED, 1011s # GValue *value G_GNUC_UNUSED, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1011s # guint prop_id G_GNUC_UNUSED, 1011s # const GValue *value G_GNUC_UNUSED, 1011s # GParamSpec *pspec G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1011s # const gchar *sender_name G_GNUC_UNUSED, 1011s # const gchar *signal_name, 1011s # GVariant *parameters) 1011s # { 1011s # _ExtendedGDBusSignalInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # gsize n; 1011s # guint signal_id; 1011s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1011s # if (info == NULL) 1011s # return; 1011s # num_params = g_variant_n_children (parameters); 1011s # paramv = g_new0 (GValue, num_params + 1); 1011s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1011s # g_value_set_object (¶mv[0], proxy); 1011s # g_variant_iter_init (&iter, parameters); 1011s # n = 1; 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1011s # g_signal_emitv (paramv, signal_id, 0, NULL); 1011s # for (n = 0; n < num_params + 1; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1011s # GVariant *changed_properties, 1011s # const gchar *const *invalidated_properties) 1011s # { 1011s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1011s # guint n; 1011s # const gchar *key; 1011s # GVariantIter *iter; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # g_variant_get (changed_properties, "a{sv}", &iter); 1011s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1011s # g_datalist_remove_data (&proxy->priv->qdata, key); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # g_variant_iter_free (iter); 1011s # for (n = 0; invalidated_properties[n] != NULL; n++) 1011s # { 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1011s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1011s # if (info != NULL) 1011s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1011s # } 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1011s # #else 1011s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1011s # #endif 1011s # 1011s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusProxyClass *proxy_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1011s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1011s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1011s # 1011s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1011s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1011s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_proxy_new: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1011s # * 1011s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # org_project_other_callable_iface_proxy_new ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_proxy_new_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectOtherCallableIface * 1011s # org_project_other_callable_iface_proxy_new_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_proxy_new_sync: 1011s # * @connection: A #GDBusConnection. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectOtherCallableIface * 1011s # org_project_other_callable_iface_proxy_new_sync ( 1011s # GDBusConnection *connection, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_proxy_new_for_bus: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1011s # * @user_data: User data to pass to @callback. 1011s # * 1011s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1011s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1011s # * 1011s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1011s # */ 1011s # void 1011s # org_project_other_callable_iface_proxy_new_for_bus ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GAsyncReadyCallback callback, 1011s # gpointer user_data) 1011s # { 1011s # 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); 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1011s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectOtherCallableIface * 1011s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1011s # GAsyncResult *res, 1011s # GError **error) 1011s # { 1011s # GObject *ret; 1011s # GObject *source_object; 1011s # source_object = g_async_result_get_source_object (res); 1011s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1011s # g_object_unref (source_object); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1011s # * @bus_type: A #GBusType. 1011s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1011s # * @name: A bus name (well-known or unique). 1011s # * @object_path: An object path. 1011s # * @cancellable: (nullable): A #GCancellable or %NULL. 1011s # * @error: Return location for error or %NULL 1011s # * 1011s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1011s # * 1011s # * The calling thread is blocked until a reply is received. 1011s # * 1011s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1011s # */ 1011s # OrgProjectOtherCallableIface * 1011s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1011s # GBusType bus_type, 1011s # GDBusProxyFlags flags, 1011s # const gchar *name, 1011s # const gchar *object_path, 1011s # GCancellable *cancellable, 1011s # GError **error) 1011s # { 1011s # GInitable *ret; 1011s # 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); 1011s # if (ret != NULL) 1011s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1011s # else 1011s # return NULL; 1011s # } 1011s # 1011s # 1011s # /* ------------------------------------------------------------------------ */ 1011s # 1011s # /** 1011s # * OrgProjectOtherCallableIfaceSkeleton: 1011s # * 1011s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1011s # */ 1011s # 1011s # /** 1011s # * OrgProjectOtherCallableIfaceSkeletonClass: 1011s # * @parent_class: The parent class. 1011s # * 1011s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1011s # */ 1011s # 1011s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1011s # { 1011s # GValue *properties; 1011s # GList *changed_properties; 1011s # GSource *changed_properties_idle_source; 1011s # GMainContext *context; 1011s # GMutex lock; 1011s # }; 1011s # 1011s # static void 1011s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name, 1011s # const gchar *method_name, 1011s # GVariant *parameters, 1011s # GDBusMethodInvocation *invocation, 1011s # gpointer user_data) 1011s # { 1011s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1011s # _ExtendedGDBusMethodInfo *info; 1011s # GVariantIter iter; 1011s # GVariant *child; 1011s # GValue *paramv; 1011s # gsize num_params; 1011s # guint num_extra; 1011s # gsize n; 1011s # guint signal_id; 1011s # GValue return_value = G_VALUE_INIT; 1011s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1011s # g_assert (info != NULL); 1011s # num_params = g_variant_n_children (parameters); 1011s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1011s # n = 0; 1011s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1011s # g_value_set_object (¶mv[n++], skeleton); 1011s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1011s # g_value_set_object (¶mv[n++], invocation); 1011s # if (info->pass_fdlist) 1011s # { 1011s # #ifdef G_OS_UNIX 1011s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1011s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1011s # #else 1011s # g_assert_not_reached (); 1011s # #endif 1011s # } 1011s # g_variant_iter_init (&iter, parameters); 1011s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1011s # { 1011s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1011s # if (arg_info->use_gvariant) 1011s # { 1011s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1011s # g_value_set_variant (¶mv[n], child); 1011s # n++; 1011s # } 1011s # else 1011s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1011s # g_variant_unref (child); 1011s # } 1011s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1011s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1011s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1011s # if (!g_value_get_boolean (&return_value)) 1011s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1011s # g_value_unset (&return_value); 1011s # for (n = 0; n < num_params + num_extra; n++) 1011s # g_value_unset (¶mv[n]); 1011s # g_free (paramv); 1011s # } 1011s # 1011s # static GVariant * 1011s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # GVariant *ret; 1011s # ret = NULL; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # g_value_init (&value, pspec->value_type); 1011s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1011s # g_value_unset (&value); 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static gboolean 1011s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1011s # GDBusConnection *connection G_GNUC_UNUSED, 1011s # const gchar *sender G_GNUC_UNUSED, 1011s # const gchar *object_path G_GNUC_UNUSED, 1011s # const gchar *interface_name G_GNUC_UNUSED, 1011s # const gchar *property_name, 1011s # GVariant *variant, 1011s # GError **error, 1011s # gpointer user_data) 1011s # { 1011s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1011s # GValue value = G_VALUE_INIT; 1011s # GParamSpec *pspec; 1011s # _ExtendedGDBusPropertyInfo *info; 1011s # gboolean ret; 1011s # ret = FALSE; 1011s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1011s # g_assert (info != NULL); 1011s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1011s # if (pspec == NULL) 1011s # { 1011s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1011s # } 1011s # else 1011s # { 1011s # if (info->use_gvariant) 1011s # g_value_set_variant (&value, variant); 1011s # else 1011s # g_dbus_gvariant_to_gvalue (variant, &value); 1011s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1011s # g_value_unset (&value); 1011s # ret = TRUE; 1011s # } 1011s # return ret; 1011s # } 1011s # 1011s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1011s # { 1011s # _org_project_other_callable_iface_skeleton_handle_method_call, 1011s # _org_project_other_callable_iface_skeleton_handle_get_property, 1011s # _org_project_other_callable_iface_skeleton_handle_set_property, 1011s # {NULL} 1011s # }; 1011s # 1011s # static GDBusInterfaceInfo * 1011s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return org_project_other_callable_iface_interface_info (); 1011s # } 1011s # 1011s # static GDBusInterfaceVTable * 1011s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1011s # { 1011s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1011s # } 1011s # 1011s # static GVariant * 1011s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1011s # { 1011s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1011s # 1011s # GVariantBuilder builder; 1011s # guint n; 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1011s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #else 1011s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1011s # #endif 1011s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1011s # goto out; 1011s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1011s # { 1011s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1011s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1011s # { 1011s # GVariant *value; 1011s # 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); 1011s # if (value != NULL) 1011s # { 1011s # g_variant_take_ref (value); 1011s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1011s # g_variant_unref (value); 1011s # } 1011s # } 1011s # } 1011s # out: 1011s # return g_variant_builder_end (&builder); 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1011s # 1011s # #else 1011s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1011s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1011s # 1011s # #endif 1011s # static void 1011s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1011s # { 1011s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1011s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1011s # if (skeleton->priv->changed_properties_idle_source != NULL) 1011s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1011s # g_main_context_unref (skeleton->priv->context); 1011s # g_mutex_clear (&skeleton->priv->lock); 1011s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1011s # { 1011s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1011s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1011s # #else 1011s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1011s # #endif 1011s # 1011s # g_mutex_init (&skeleton->priv->lock); 1011s # skeleton->priv->context = g_main_context_ref_thread_default (); 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1011s # { 1011s # GObjectClass *gobject_class; 1011s # GDBusInterfaceSkeletonClass *skeleton_class; 1011s # 1011s # gobject_class = G_OBJECT_CLASS (klass); 1011s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1011s # 1011s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1011s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1011s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1011s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1011s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1011s # 1011s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1011s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1011s # #endif 1011s # } 1011s # 1011s # static void 1011s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1011s # { 1011s # } 1011s # 1011s # /** 1011s # * org_project_other_callable_iface_skeleton_new: 1011s # * 1011s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1011s # * 1011s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1011s # */ 1011s # OrgProjectOtherCallableIface * 1011s # org_project_other_callable_iface_skeleton_new (void) 1011s # { 1011s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1011s # } 1011s # Error: 1012s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1012s # gdbus-codegen: /usr/bin/gdbus-codegen 1012s # tmpdir: /tmp/tmpic4q3hw1 1012s # /tmp/tmpic4q3hw1/tmpaow8xkft.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpaow8xkft.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # gboolean arg_arg_b, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_boolean (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_b", 1012s # (gchar *) "b", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodB", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-b", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_b: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-b", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_b, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_b: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_b: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_b ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gboolean arg_arg_b, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodB", 1012s # g_variant_new ("(b)", 1012s # arg_arg_b), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_b_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_b_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_b_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_b: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_b_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gboolean arg_arg_b, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodB", 1012s # g_variant_new ("(b)", 1012s # arg_arg_b), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_b: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_b ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpjazy52qm.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpjazy52qm.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # guchar arg_arg_y, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_uchar (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_y", 1012s # (gchar *) "y", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodY", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-y", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_y: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-y", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_y, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_y: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_y: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_y ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guchar arg_arg_y, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodY", 1012s # g_variant_new ("(y)", 1012s # arg_arg_y), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_y_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_y_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_y_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_y: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_y_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guchar arg_arg_y, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodY", 1012s # g_variant_new ("(y)", 1012s # arg_arg_y), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_y: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_y ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmp64b1kv4f.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmp64b1kv4f.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # gint16 arg_arg_n, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_int (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_n", 1012s # (gchar *) "n", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodN", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-n", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_n: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-n", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_n, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_n: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_n: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_n ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gint16 arg_arg_n, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodN", 1012s # g_variant_new ("(n)", 1012s # arg_arg_n), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_n_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_n_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_n_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_n: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_n_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gint16 arg_arg_n, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodN", 1012s # g_variant_new ("(n)", 1012s # arg_arg_n), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_n: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_n ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpdz6y3zb9.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpdz6y3zb9.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # guint16 arg_arg_q, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_uint (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_q", 1012s # (gchar *) "q", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodQ", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-q", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_q: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-q", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_q, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_q: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_q: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_q ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guint16 arg_arg_q, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodQ", 1012s # g_variant_new ("(q)", 1012s # arg_arg_q), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_q_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_q_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_q_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_q: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_q_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guint16 arg_arg_q, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodQ", 1012s # g_variant_new ("(q)", 1012s # arg_arg_q), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_q: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_q ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpwso3tjn8.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpwso3tjn8.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # gint arg_arg_i, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_int (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_i", 1012s # (gchar *) "i", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodI", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-i", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_i: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-i", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_i, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_i: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_i: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_i ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gint arg_arg_i, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodI", 1012s # g_variant_new ("(i)", 1012s # arg_arg_i), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_i_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_i_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_i_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_i: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_i_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gint arg_arg_i, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodI", 1012s # g_variant_new ("(i)", 1012s # arg_arg_i), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_i: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_i ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpvjfzy7g4.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpvjfzy7g4.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # guint arg_arg_u, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_uint (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_u", 1012s # (gchar *) "u", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodU", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-u", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_u: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-u", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_u, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_u: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_u: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_u ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guint arg_arg_u, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodU", 1012s # g_variant_new ("(u)", 1012s # arg_arg_u), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_u_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_u_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_u_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_u: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_u_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guint arg_arg_u, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodU", 1012s # g_variant_new ("(u)", 1012s # arg_arg_u), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_u: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_u ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpwnfhhyfw.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpwnfhhyfw.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # gint64 arg_arg_x, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_int64 (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_x", 1012s # (gchar *) "x", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodX", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-x", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_x: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-x", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_x, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_x: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_x: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_x ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gint64 arg_arg_x, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodX", 1012s # g_variant_new ("(x)", 1012s # arg_arg_x), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_x_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_x_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_x_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_x: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_x_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gint64 arg_arg_x, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodX", 1012s # g_variant_new ("(x)", 1012s # arg_arg_x), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_x: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_x ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpni2adkp9.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpni2adkp9.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # guint64 arg_arg_t, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_uint64 (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_t", 1012s # (gchar *) "t", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodT", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-t", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_t: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-t", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_t, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_t: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_t: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_t ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guint64 arg_arg_t, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodT", 1012s # g_variant_new ("(t)", 1012s # arg_arg_t), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_t_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_t_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_t_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_t: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_t_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # guint64 arg_arg_t, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodT", 1012s # g_variant_new ("(t)", 1012s # arg_arg_t), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_t: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_t ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpplecdfoi.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpplecdfoi.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # gdouble arg_arg_d, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_double (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_d", 1012s # (gchar *) "d", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodD", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-d", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_d: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-d", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_d, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_d: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_d: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_d ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gdouble arg_arg_d, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodD", 1012s # g_variant_new ("(d)", 1012s # arg_arg_d), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_d_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_d_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_d_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_d: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_d_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # gdouble arg_arg_d, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodD", 1012s # g_variant_new ("(d)", 1012s # arg_arg_d), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_d: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_d ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpbeazdt4m.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpbeazdt4m.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *arg_arg_s, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_string (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_s", 1012s # (gchar *) "s", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodS", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-s", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_s: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-s", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_s, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_s: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_s: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_s ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_s, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodS", 1012s # g_variant_new ("(s)", 1012s # arg_arg_s), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_s_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_s_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_s_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_s: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_s_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_s, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodS", 1012s # g_variant_new ("(s)", 1012s # arg_arg_s), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_s: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_s ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmp46q0e8nz.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmp46q0e8nz.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *arg_arg_o, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_string (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_o", 1012s # (gchar *) "o", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodO", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-o", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_o: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-o", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_o, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_o: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_o: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_o ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_o, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodO", 1012s # g_variant_new ("(o)", 1012s # arg_arg_o), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_o_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_o_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_o_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_o: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_o_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_o, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodO", 1012s # g_variant_new ("(o)", 1012s # arg_arg_o), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_o: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_o ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpkqazsxkx.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpkqazsxkx.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *arg_arg_g, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_string (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_g", 1012s # (gchar *) "g", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodG", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-g", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_g: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-g", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_g, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_g: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_g: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_g ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_g, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodG", 1012s # g_variant_new ("(g)", 1012s # arg_arg_g), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_g_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_g_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_g_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_g: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_g_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_g, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodG", 1012s # g_variant_new ("(g)", 1012s # arg_arg_g), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_g: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_g ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmp2limh6oh.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmp2limh6oh.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # GVariant *arg_arg_h, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_variant (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_h", 1012s # (gchar *) "h", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodH", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-h", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_h: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-h", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_h, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_h: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_h: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_h ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GVariant *arg_arg_h, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodH", 1012s # g_variant_new ("(@h)", 1012s # arg_arg_h), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_h_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_h_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_h_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_h: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_h_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GVariant *arg_arg_h, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodH", 1012s # g_variant_new ("(@h)", 1012s # arg_arg_h), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_h: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_h ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpgqw_xznm.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpgqw_xznm.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *arg_arg_ay, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_string (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_ay", 1012s # (gchar *) "ay", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodAy", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-ay", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_ay: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-ay", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_ay: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_ay: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_ay ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_ay, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAy", 1012s # g_variant_new ("(^ay)", 1012s # arg_arg_ay), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_ay: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *arg_arg_ay, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAy", 1012s # g_variant_new ("(^ay)", 1012s # arg_arg_ay), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_ay: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_ay ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpequjuhwg.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpequjuhwg.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *const *arg_arg_as, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_boxed (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_as", 1012s # (gchar *) "as", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodAs", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-as", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_as: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-as", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_as, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_as: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_as: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_as ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *const *arg_arg_as, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAs", 1012s # g_variant_new ("(^as)", 1012s # arg_arg_as), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_as_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_as_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_as_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_as: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_as_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *const *arg_arg_as, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAs", 1012s # g_variant_new ("(^as)", 1012s # arg_arg_as), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_as: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_as ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpwxyswrnf.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpwxyswrnf.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *const *arg_arg_ao, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_boxed (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_ao", 1012s # (gchar *) "ao", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodAo", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-ao", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_ao: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-ao", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_ao: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_ao: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_ao ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *const *arg_arg_ao, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAo", 1012s # g_variant_new ("(^ao)", 1012s # arg_arg_ao), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_ao: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *const *arg_arg_ao, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAo", 1012s # g_variant_new ("(^ao)", 1012s # arg_arg_ao), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_ao: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_ao ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmp0o7i5epl.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmp0o7i5epl.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # const gchar *const *arg_arg_aay, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_boxed (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_aay", 1012s # (gchar *) "aay", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodAay", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-aay", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_aay: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-aay", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_aay: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_aay: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_aay ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *const *arg_arg_aay, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAay", 1012s # g_variant_new ("(^aay)", 1012s # arg_arg_aay), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_aay: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # const gchar *const *arg_arg_aay, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAay", 1012s # g_variant_new ("(^aay)", 1012s # arg_arg_aay), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_aay: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_aay ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1012s # 1012s # /tmp/tmpic4q3hw1/tmpl1v2_vyh.xml: 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # 1012s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpic4q3hw1/tmpl1v2_vyh.xml', '--output', '-', '--body'] 1012s # Return code: 0 1012s # Output: 1012s # /* 1012s # * This file is generated by gdbus-codegen, do not modify it. 1012s # * 1012s # * The license of this code is the same as for the D-Bus interface description 1012s # * it was derived from. Note that it links to GLib, so must comply with the 1012s # * LGPL linking clauses. 1012s # */ 1012s # 1012s # #ifdef HAVE_CONFIG_H 1012s # # include "config.h" 1012s # #endif 1012s # 1012s # #include 1012s # #ifdef G_OS_UNIX 1012s # # include 1012s # #endif 1012s # 1012s # #ifdef G_ENABLE_DEBUG 1012s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1012s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1012s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1012s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1012s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1012s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1012s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1012s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1012s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1012s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1012s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1012s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1012s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1012s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1012s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1012s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1012s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1012s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1012s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1012s # #else /* !G_ENABLE_DEBUG */ 1012s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1012s # * Do not access GValues directly in your code. Instead, use the 1012s # * g_value_get_*() functions 1012s # */ 1012s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1012s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1012s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1012s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1012s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1012s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1012s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1012s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1012s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1012s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1012s # #endif /* !G_ENABLE_DEBUG */ 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusArgInfo parent_struct; 1012s # gboolean use_gvariant; 1012s # } _ExtendedGDBusArgInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusMethodInfo parent_struct; 1012s # const gchar *signal_name; 1012s # gboolean pass_fdlist; 1012s # } _ExtendedGDBusMethodInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusSignalInfo parent_struct; 1012s # const gchar *signal_name; 1012s # } _ExtendedGDBusSignalInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusPropertyInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # guint use_gvariant : 1; 1012s # guint emits_changed_signal : 1; 1012s # } _ExtendedGDBusPropertyInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # GDBusInterfaceInfo parent_struct; 1012s # const gchar *hyphen_name; 1012s # } _ExtendedGDBusInterfaceInfo; 1012s # 1012s # typedef struct 1012s # { 1012s # const _ExtendedGDBusPropertyInfo *info; 1012s # guint prop_id; 1012s # GValue orig_value; /* the value before the change */ 1012s # } ChangedProperty; 1012s # 1012s # static void 1012s # _changed_property_free (ChangedProperty *data) 1012s # { 1012s # g_value_unset (&data->orig_value); 1012s # g_free (data); 1012s # } 1012s # 1012s # static gboolean 1012s # _g_strv_equal0 (gchar **a, gchar **b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # guint n; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # if (g_strv_length (a) != g_strv_length (b)) 1012s # goto out; 1012s # for (n = 0; a[n] != NULL; n++) 1012s # if (g_strcmp0 (a[n], b[n]) != 0) 1012s # goto out; 1012s # ret = TRUE; 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _g_variant_equal0 (GVariant *a, GVariant *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # if (a == NULL && b == NULL) 1012s # { 1012s # ret = TRUE; 1012s # goto out; 1012s # } 1012s # if (a == NULL || b == NULL) 1012s # goto out; 1012s # ret = g_variant_equal (a, b); 1012s # out: 1012s # return ret; 1012s # } 1012s # 1012s # G_GNUC_UNUSED static gboolean 1012s # _g_value_equal (const GValue *a, const GValue *b) 1012s # { 1012s # gboolean ret = FALSE; 1012s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1012s # switch (G_VALUE_TYPE (a)) 1012s # { 1012s # case G_TYPE_BOOLEAN: 1012s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1012s # break; 1012s # case G_TYPE_UCHAR: 1012s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1012s # break; 1012s # case G_TYPE_INT: 1012s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1012s # break; 1012s # case G_TYPE_UINT: 1012s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1012s # break; 1012s # case G_TYPE_INT64: 1012s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1012s # break; 1012s # case G_TYPE_UINT64: 1012s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1012s # break; 1012s # case G_TYPE_DOUBLE: 1012s # { 1012s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1012s # gdouble da = g_value_get_double (a); 1012s # gdouble db = g_value_get_double (b); 1012s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1012s # } 1012s # break; 1012s # case G_TYPE_STRING: 1012s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1012s # break; 1012s # case G_TYPE_VARIANT: 1012s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1012s # break; 1012s # default: 1012s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1012s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1012s # else 1012s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1012s # break; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static void 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint G_GNUC_UNUSED, 1012s # void *marshal_data) 1012s # { 1012s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1012s # (void *data1, 1012s # GDBusMethodInvocation *arg_method_invocation, 1012s # GVariant *arg_arg_asv, 1012s # void *data2); 1012s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1012s # GCClosure *cc = (GCClosure*) closure; 1012s # void *data1, *data2; 1012s # gboolean v_return; 1012s # 1012s # g_return_if_fail (return_value != NULL); 1012s # g_return_if_fail (n_param_values == 3); 1012s # 1012s # if (G_CCLOSURE_SWAP_DATA (closure)) 1012s # { 1012s # data1 = closure->data; 1012s # data2 = g_value_peek_pointer (param_values + 0); 1012s # } 1012s # else 1012s # { 1012s # data1 = g_value_peek_pointer (param_values + 0); 1012s # data2 = closure->data; 1012s # } 1012s # 1012s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1012s # (marshal_data ? marshal_data : cc->callback); 1012s # 1012s # v_return = 1012s # callback (data1, 1012s # g_marshal_value_peek_object (param_values + 1), 1012s # g_marshal_value_peek_variant (param_values + 2), 1012s # data2); 1012s # 1012s # g_value_set_boolean (return_value, v_return); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ 1012s # * Code for interface org.project.UsefulInterface 1012s # * ------------------------------------------------------------------------ 1012s # */ 1012s # 1012s # /** 1012s # * SECTION:OrgProjectUsefulInterface 1012s # * @title: OrgProjectUsefulInterface 1012s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1012s # * 1012s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1012s # */ 1012s # 1012s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1012s # 1012s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "arg_asv", 1012s # (gchar *) "a{sv}", 1012s # NULL 1012s # }, 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "SingleArgMethodAsv", 1012s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "handle-single-arg-method-asv", 1012s # FALSE 1012s # }; 1012s # 1012s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1012s # { 1012s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1012s # NULL 1012s # }; 1012s # 1012s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1012s # { 1012s # { 1012s # -1, 1012s # (gchar *) "org.project.UsefulInterface", 1012s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1012s # NULL, 1012s # NULL, 1012s # NULL 1012s # }, 1012s # "org-project-useful-interface", 1012s # }; 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_interface_info: 1012s # * 1012s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1012s # * 1012s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1012s # */ 1012s # GDBusInterfaceInfo * 1012s # org_project_useful_interface_interface_info (void) 1012s # { 1012s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_override_properties: 1012s # * @klass: The class structure for a #GObject derived class. 1012s # * @property_id_begin: The property id to assign to the first overridden property. 1012s # * 1012s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1012s # * The properties are overridden in the order they are defined. 1012s # * 1012s # * Returns: The last property id. 1012s # */ 1012s # guint 1012s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1012s # { 1012s # return property_id_begin - 1; 1012s # } 1012s # 1012s # 1012s # inline static void 1012s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1012s # GClosure *closure, 1012s # GValue *return_value, 1012s # unsigned int n_param_values, 1012s # const GValue *param_values, 1012s # void *invocation_hint, 1012s # void *marshal_data) 1012s # { 1012s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1012s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1012s # } 1012s # 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterface: 1012s # * 1012s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceIface: 1012s # * @parent_iface: The parent interface. 1012s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1012s # * 1012s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1012s # */ 1012s # 1012s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1012s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1012s # 1012s # static void 1012s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1012s # { 1012s # /* GObject signals for incoming D-Bus method calls: */ 1012s # /** 1012s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: A #GDBusMethodInvocation. 1012s # * @arg_arg_asv: Argument passed by remote caller. 1012s # * 1012s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1012s # * 1012s # * 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. 1012s # * 1012s # * 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. 1012s # */ 1012s # g_signal_new ("handle-single-arg-method-asv", 1012s # G_TYPE_FROM_INTERFACE (iface), 1012s # G_SIGNAL_RUN_LAST, 1012s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1012s # g_signal_accumulator_true_handled, 1012s # NULL, 1012s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1012s # G_TYPE_BOOLEAN, 1012s # 2, 1012s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1012s # 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_asv: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_asv: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1012s # */ 1012s # void 1012s # org_project_useful_interface_call_single_arg_method_asv ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GVariant *arg_arg_asv, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAsv", 1012s # g_variant_new ("(@a{sv})", 1012s # arg_arg_asv), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # callback, 1012s # user_data); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1012s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1012s # * @arg_arg_asv: Argument to pass with the method invocation. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL. 1012s # * 1012s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1012s # * 1012s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1012s # */ 1012s # gboolean 1012s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1012s # OrgProjectUsefulInterface *proxy, 1012s # GVariant *arg_arg_asv, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GVariant *_ret; 1012s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1012s # "SingleArgMethodAsv", 1012s # g_variant_new ("(@a{sv})", 1012s # arg_arg_asv), 1012s # G_DBUS_CALL_FLAGS_NONE, 1012s # -1, 1012s # cancellable, 1012s # error); 1012s # if (_ret == NULL) 1012s # goto _out; 1012s # g_variant_get (_ret, 1012s # "()"); 1012s # g_variant_unref (_ret); 1012s # _out: 1012s # return _ret != NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_complete_single_arg_method_asv: 1012s # * @object: A #OrgProjectUsefulInterface. 1012s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1012s # * 1012s # * 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. 1012s # * 1012s # * This method will free @invocation, you cannot use it afterwards. 1012s # */ 1012s # void 1012s # org_project_useful_interface_complete_single_arg_method_asv ( 1012s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1012s # GDBusMethodInvocation *invocation) 1012s # { 1012s # g_dbus_method_invocation_return_value (invocation, 1012s # g_variant_new ("()")); 1012s # } 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxy: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceProxyClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceProxyPrivate 1012s # { 1012s # GData *qdata; 1012s # }; 1012s # 1012s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_proxy_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1012s # g_datalist_clear (&proxy->priv->qdata); 1012s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1012s # guint prop_id G_GNUC_UNUSED, 1012s # const GValue *value G_GNUC_UNUSED, 1012s # GParamSpec *pspec G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1012s # const gchar *sender_name G_GNUC_UNUSED, 1012s # const gchar *signal_name, 1012s # GVariant *parameters) 1012s # { 1012s # _ExtendedGDBusSignalInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # gsize n; 1012s # guint signal_id; 1012s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1012s # if (info == NULL) 1012s # return; 1012s # num_params = g_variant_n_children (parameters); 1012s # paramv = g_new0 (GValue, num_params + 1); 1012s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[0], proxy); 1012s # g_variant_iter_init (&iter, parameters); 1012s # n = 1; 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_signal_emitv (paramv, signal_id, 0, NULL); 1012s # for (n = 0; n < num_params + 1; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1012s # GVariant *changed_properties, 1012s # const gchar *const *invalidated_properties) 1012s # { 1012s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1012s # guint n; 1012s # const gchar *key; 1012s # GVariantIter *iter; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # g_variant_get (changed_properties, "a{sv}", &iter); 1012s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1012s # g_datalist_remove_data (&proxy->priv->qdata, key); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # g_variant_iter_free (iter); 1012s # for (n = 0; invalidated_properties[n] != NULL; n++) 1012s # { 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1012s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1012s # if (info != NULL) 1012s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1012s # } 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1012s # #else 1012s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1012s # #endif 1012s # 1012s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusProxyClass *proxy_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1012s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1012s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1012s # 1012s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1012s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1012s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_sync: 1012s # * @connection: A #GDBusConnection. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_sync ( 1012s # GDBusConnection *connection, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1012s # * @user_data: User data to pass to @callback. 1012s # * 1012s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1012s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1012s # */ 1012s # void 1012s # org_project_useful_interface_proxy_new_for_bus ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GAsyncReadyCallback callback, 1012s # gpointer user_data) 1012s # { 1012s # g_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); 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_finish: 1012s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_finish ( 1012s # GAsyncResult *res, 1012s # GError **error) 1012s # { 1012s # GObject *ret; 1012s # GObject *source_object; 1012s # source_object = g_async_result_get_source_object (res); 1012s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1012s # g_object_unref (source_object); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_proxy_new_for_bus_sync: 1012s # * @bus_type: A #GBusType. 1012s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1012s # * @name: A bus name (well-known or unique). 1012s # * @object_path: An object path. 1012s # * @cancellable: (nullable): A #GCancellable or %NULL. 1012s # * @error: Return location for error or %NULL 1012s # * 1012s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1012s # * 1012s # * The calling thread is blocked until a reply is received. 1012s # * 1012s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_proxy_new_for_bus_sync ( 1012s # GBusType bus_type, 1012s # GDBusProxyFlags flags, 1012s # const gchar *name, 1012s # const gchar *object_path, 1012s # GCancellable *cancellable, 1012s # GError **error) 1012s # { 1012s # GInitable *ret; 1012s # 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); 1012s # if (ret != NULL) 1012s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1012s # else 1012s # return NULL; 1012s # } 1012s # 1012s # 1012s # /* ------------------------------------------------------------------------ */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeleton: 1012s # * 1012s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1012s # */ 1012s # 1012s # /** 1012s # * OrgProjectUsefulInterfaceSkeletonClass: 1012s # * @parent_class: The parent class. 1012s # * 1012s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1012s # */ 1012s # 1012s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1012s # { 1012s # GValue *properties; 1012s # GList *changed_properties; 1012s # GSource *changed_properties_idle_source; 1012s # GMainContext *context; 1012s # GMutex lock; 1012s # }; 1012s # 1012s # static void 1012s # _org_project_useful_interface_skeleton_handle_method_call ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name, 1012s # const gchar *method_name, 1012s # GVariant *parameters, 1012s # GDBusMethodInvocation *invocation, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # _ExtendedGDBusMethodInfo *info; 1012s # GVariantIter iter; 1012s # GVariant *child; 1012s # GValue *paramv; 1012s # gsize num_params; 1012s # guint num_extra; 1012s # gsize n; 1012s # guint signal_id; 1012s # GValue return_value = G_VALUE_INIT; 1012s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1012s # g_assert (info != NULL); 1012s # num_params = g_variant_n_children (parameters); 1012s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1012s # n = 0; 1012s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_set_object (¶mv[n++], skeleton); 1012s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1012s # g_value_set_object (¶mv[n++], invocation); 1012s # if (info->pass_fdlist) 1012s # { 1012s # #ifdef G_OS_UNIX 1012s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1012s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1012s # #else 1012s # g_assert_not_reached (); 1012s # #endif 1012s # } 1012s # g_variant_iter_init (&iter, parameters); 1012s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1012s # { 1012s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1012s # if (arg_info->use_gvariant) 1012s # { 1012s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1012s # g_value_set_variant (¶mv[n], child); 1012s # n++; 1012s # } 1012s # else 1012s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1012s # g_variant_unref (child); 1012s # } 1012s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1012s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1012s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1012s # if (!g_value_get_boolean (&return_value)) 1012s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1012s # g_value_unset (&return_value); 1012s # for (n = 0; n < num_params + num_extra; n++) 1012s # g_value_unset (¶mv[n]); 1012s # g_free (paramv); 1012s # } 1012s # 1012s # static GVariant * 1012s # _org_project_useful_interface_skeleton_handle_get_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # GVariant *ret; 1012s # ret = NULL; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # g_value_init (&value, pspec->value_type); 1012s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1012s # g_value_unset (&value); 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static gboolean 1012s # _org_project_useful_interface_skeleton_handle_set_property ( 1012s # GDBusConnection *connection G_GNUC_UNUSED, 1012s # const gchar *sender G_GNUC_UNUSED, 1012s # const gchar *object_path G_GNUC_UNUSED, 1012s # const gchar *interface_name G_GNUC_UNUSED, 1012s # const gchar *property_name, 1012s # GVariant *variant, 1012s # GError **error, 1012s # gpointer user_data) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1012s # GValue value = G_VALUE_INIT; 1012s # GParamSpec *pspec; 1012s # _ExtendedGDBusPropertyInfo *info; 1012s # gboolean ret; 1012s # ret = FALSE; 1012s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1012s # g_assert (info != NULL); 1012s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1012s # if (pspec == NULL) 1012s # { 1012s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1012s # } 1012s # else 1012s # { 1012s # if (info->use_gvariant) 1012s # g_value_set_variant (&value, variant); 1012s # else 1012s # g_dbus_gvariant_to_gvalue (variant, &value); 1012s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1012s # g_value_unset (&value); 1012s # ret = TRUE; 1012s # } 1012s # return ret; 1012s # } 1012s # 1012s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1012s # { 1012s # _org_project_useful_interface_skeleton_handle_method_call, 1012s # _org_project_useful_interface_skeleton_handle_get_property, 1012s # _org_project_useful_interface_skeleton_handle_set_property, 1012s # {NULL} 1012s # }; 1012s # 1012s # static GDBusInterfaceInfo * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return org_project_useful_interface_interface_info (); 1012s # } 1012s # 1012s # static GDBusInterfaceVTable * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1012s # { 1012s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1012s # } 1012s # 1012s # static GVariant * 1012s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1012s # 1012s # GVariantBuilder builder; 1012s # guint n; 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1012s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #else 1012s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1012s # #endif 1012s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1012s # goto out; 1012s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1012s # { 1012s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1012s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1012s # { 1012s # GVariant *value; 1012s # 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); 1012s # if (value != NULL) 1012s # { 1012s # g_variant_take_ref (value); 1012s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1012s # g_variant_unref (value); 1012s # } 1012s # } 1012s # } 1012s # out: 1012s # return g_variant_builder_end (&builder); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #else 1012s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1012s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1012s # 1012s # #endif 1012s # static void 1012s # org_project_useful_interface_skeleton_finalize (GObject *object) 1012s # { 1012s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1012s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1012s # if (skeleton->priv->changed_properties_idle_source != NULL) 1012s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1012s # g_main_context_unref (skeleton->priv->context); 1012s # g_mutex_clear (&skeleton->priv->lock); 1012s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1012s # { 1012s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1012s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1012s # #else 1012s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1012s # #endif 1012s # 1012s # g_mutex_init (&skeleton->priv->lock); 1012s # skeleton->priv->context = g_main_context_ref_thread_default (); 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1012s # { 1012s # GObjectClass *gobject_class; 1012s # GDBusInterfaceSkeletonClass *skeleton_class; 1012s # 1012s # gobject_class = G_OBJECT_CLASS (klass); 1012s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1012s # 1012s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1012s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1012s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1012s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1012s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1012s # 1012s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1012s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1012s # #endif 1012s # } 1012s # 1012s # static void 1012s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1012s # { 1012s # } 1012s # 1012s # /** 1012s # * org_project_useful_interface_skeleton_new: 1012s # * 1012s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1012s # * 1012s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1012s # */ 1012s # OrgProjectUsefulInterface * 1012s # org_project_useful_interface_skeleton_new (void) 1012s # { 1012s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1012s # } 1012s # Error: 1016s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1016s # Executing: glib/codegen.py.test 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpx5eyywnr 1016s # /tmp/tmpx5eyywnr/tmprh2lsb1b.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmprh2lsb1b.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodB", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-b", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-b", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_b, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_b: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_b ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodB", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_b_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_b_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gboolean *out_arg_b, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(b)", 1016s # out_arg_b); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_b_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_b_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gboolean *out_arg_b, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodB", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(b)", 1016s # out_arg_b); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_b: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_b: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_b ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # gboolean arg_b) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(b)", 1016s # arg_b)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpa029rpsv.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpa029rpsv.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodY", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-y", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-y", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_y, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_y: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_y ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodY", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_y_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_y_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guchar *out_arg_y, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(y)", 1016s # out_arg_y); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_y_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_y_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guchar *out_arg_y, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodY", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(y)", 1016s # out_arg_y); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_y: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_y: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_y ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # guchar arg_y) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(y)", 1016s # arg_y)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpzx7t8obp.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpzx7t8obp.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodN", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-n", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-n", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_n, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_n: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_n ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodN", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_n_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_n_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gint16 *out_arg_n, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(n)", 1016s # out_arg_n); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_n_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_n_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gint16 *out_arg_n, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodN", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(n)", 1016s # out_arg_n); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_n: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_n: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_n ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # gint16 arg_n) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(n)", 1016s # arg_n)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmp7s6wijt6.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmp7s6wijt6.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodQ", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-q", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-q", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_q, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_q: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_q ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodQ", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_q_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_q_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guint16 *out_arg_q, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(q)", 1016s # out_arg_q); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_q_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_q_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guint16 *out_arg_q, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodQ", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(q)", 1016s # out_arg_q); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_q: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_q: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_q ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # guint16 arg_q) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(q)", 1016s # arg_q)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpoe4ze0__.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpoe4ze0__.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodI", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-i", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-i", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_i, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_i: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_i ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodI", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_i_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_i_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gint *out_arg_i, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(i)", 1016s # out_arg_i); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_i_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_i_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gint *out_arg_i, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodI", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(i)", 1016s # out_arg_i); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_i: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_i: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_i ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # gint arg_i) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(i)", 1016s # arg_i)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpgon01jt2.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpgon01jt2.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodU", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-u", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-u", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_u, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_u: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_u ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodU", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_u_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_u_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guint *out_arg_u, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(u)", 1016s # out_arg_u); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_u_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_u_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guint *out_arg_u, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodU", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(u)", 1016s # out_arg_u); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_u: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_u: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_u ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # guint arg_u) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(u)", 1016s # arg_u)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpey_jhsjq.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpey_jhsjq.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodX", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-x", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-x", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_x, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_x: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_x ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodX", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_x_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_x_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gint64 *out_arg_x, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(x)", 1016s # out_arg_x); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_x_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_x_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gint64 *out_arg_x, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodX", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(x)", 1016s # out_arg_x); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_x: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_x: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_x ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # gint64 arg_x) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(x)", 1016s # arg_x)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpblz_rvp2.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpblz_rvp2.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodT", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-t", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-t", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_t, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_t: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_t ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodT", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_t_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_t_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guint64 *out_arg_t, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(t)", 1016s # out_arg_t); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_t_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_t_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # guint64 *out_arg_t, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodT", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(t)", 1016s # out_arg_t); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_t: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_t: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_t ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # guint64 arg_t) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(t)", 1016s # arg_t)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpyl0b9gjh.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpyl0b9gjh.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodD", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-d", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-d", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_d, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_d: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_d ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodD", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_d_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_d_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gdouble *out_arg_d, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(d)", 1016s # out_arg_d); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_d_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_d_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gdouble *out_arg_d, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodD", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(d)", 1016s # out_arg_d); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_d: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_d: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_d ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # gdouble arg_d) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(d)", 1016s # arg_d)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpgx1hca7l.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpgx1hca7l.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodS", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-s", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-s", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_s, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_s: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_s ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodS", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_s_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_s_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_s, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(s)", 1016s # out_arg_s); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_s_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_s_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_s, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodS", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(s)", 1016s # out_arg_s); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_s: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_s: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_s ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *arg_s) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(s)", 1016s # arg_s)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmp_ddwro2g.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmp_ddwro2g.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodO", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-o", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-o", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_o, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_o: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_o ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodO", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_o_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_o_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_o, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(o)", 1016s # out_arg_o); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_o_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_o_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_o, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodO", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(o)", 1016s # out_arg_o); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_o: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_o: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_o ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *arg_o) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(o)", 1016s # arg_o)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmp6vbfhz00.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmp6vbfhz00.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodG", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-g", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-g", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_g, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_g: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_g ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodG", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_g_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_g_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_g, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(g)", 1016s # out_arg_g); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_g_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_g_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_g, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodG", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(g)", 1016s # out_arg_g); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_g: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_g: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_g ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *arg_g) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(g)", 1016s # arg_g)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpm8hjvijv.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpm8hjvijv.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodH", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-h", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-h", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_h, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_h: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_h ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodH", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_h_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_h_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GVariant **out_arg_h, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(@h)", 1016s # out_arg_h); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_h_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_h_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GVariant **out_arg_h, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodH", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(@h)", 1016s # out_arg_h); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_h: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_h: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_h ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # GVariant *arg_h) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(@h)", 1016s # arg_h)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmp_ee1rvdy.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmp_ee1rvdy.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodAy", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-ay", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-ay", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_ay: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_ay ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAy", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_ay, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^ay)", 1016s # out_arg_ay); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar **out_arg_ay, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAy", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^ay)", 1016s # out_arg_ay); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_ay: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_ay: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_ay ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *arg_ay) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(^ay)", 1016s # arg_ay)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmptz0vo6ms.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmptz0vo6ms.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodAs", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-as", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-as", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_as, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_as: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_as ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAs", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_as_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_as_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar ***out_arg_as, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^as)", 1016s # out_arg_as); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_as_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_as_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar ***out_arg_as, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAs", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^as)", 1016s # out_arg_as); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_as: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_as: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_as ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *const *arg_as) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(^as)", 1016s # arg_as)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmp0w3ff84v.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmp0w3ff84v.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodAo", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-ao", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-ao", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_ao: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_ao ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAo", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar ***out_arg_ao, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^ao)", 1016s # out_arg_ao); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar ***out_arg_ao, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAo", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^ao)", 1016s # out_arg_ao); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_ao: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_ao: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_ao ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *const *arg_ao) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(^ao)", 1016s # arg_ao)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpi1qdcjl0.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpi1qdcjl0.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodAay", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-aay", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-aay", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_aay: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_aay ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAay", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar ***out_arg_aay, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^aay)", 1016s # out_arg_aay); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # gchar ***out_arg_aay, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAay", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(^aay)", 1016s # out_arg_aay); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_aay: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_aay: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_aay ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # const gchar *const *arg_aay) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(^aay)", 1016s # arg_aay)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s # 1016s # /tmp/tmpx5eyywnr/tmpf1c9rov8.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpx5eyywnr/tmpf1c9rov8.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "arg_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgMethodAsv", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-single-arg-method-asv", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-single-arg-method-asv", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_asv: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_useful_interface_call_single_arg_method_asv ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAsv", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GVariant **out_arg_asv, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(@a{sv})", 1016s # out_arg_asv); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1016s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1016s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1016s # OrgProjectUsefulInterface *proxy, 1016s # GVariant **out_arg_asv, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SingleArgMethodAsv", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(@a{sv})", 1016s # out_arg_asv); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_complete_single_arg_method_asv: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @arg_asv: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_useful_interface_complete_single_arg_method_asv ( 1016s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # GVariant *arg_asv) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(@a{sv})", 1016s # arg_asv)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpn3lbxluf 1016s # /tmp/tmpn3lbxluf/tmpi5yjyt76.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn3lbxluf/tmpi5yjyt76.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 20); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # g_marshal_value_peek_boolean (param_values + 2), 1016s # g_marshal_value_peek_uchar (param_values + 3), 1016s # g_marshal_value_peek_int (param_values + 4), 1016s # g_marshal_value_peek_uint (param_values + 5), 1016s # g_marshal_value_peek_int (param_values + 6), 1016s # g_marshal_value_peek_uint (param_values + 7), 1016s # g_marshal_value_peek_int64 (param_values + 8), 1016s # g_marshal_value_peek_uint64 (param_values + 9), 1016s # g_marshal_value_peek_double (param_values + 10), 1016s # g_marshal_value_peek_string (param_values + 11), 1016s # g_marshal_value_peek_string (param_values + 12), 1016s # g_marshal_value_peek_string (param_values + 13), 1016s # g_marshal_value_peek_variant (param_values + 14), 1016s # g_marshal_value_peek_string (param_values + 15), 1016s # g_marshal_value_peek_boxed (param_values + 16), 1016s # g_marshal_value_peek_boxed (param_values + 17), 1016s # g_marshal_value_peek_boxed (param_values + 18), 1016s # g_marshal_value_peek_variant (param_values + 19), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.CallableIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectCallableIface 1016s # * @title: OrgProjectCallableIface 1016s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.CallableIface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1016s # { 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "MethodWithManyArgs", 1016s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "handle-method-with-many-args", 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1016s # { 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SameMethodWithManyArgs", 1016s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "handle-same-method-with-many-args", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1016s # { 1016s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1016s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.CallableIface", 1016s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-callable-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_callable_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_callable_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_callable_iface_method_marshal_method_with_many_args ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _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, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _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, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectCallableIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1016s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.CallableIface. 1016s # */ 1016s # 1016s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectCallableIface::handle-method-with-many-args: 1016s # * @object: A #OrgProjectCallableIface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * @arg_an_b: Argument passed by remote caller. 1016s # * @arg_an_y: Argument passed by remote caller. 1016s # * @arg_an_n: Argument passed by remote caller. 1016s # * @arg_an_q: Argument passed by remote caller. 1016s # * @arg_an_i: Argument passed by remote caller. 1016s # * @arg_an_u: Argument passed by remote caller. 1016s # * @arg_an_x: Argument passed by remote caller. 1016s # * @arg_an_t: Argument passed by remote caller. 1016s # * @arg_an_d: Argument passed by remote caller. 1016s # * @arg_an_s: Argument passed by remote caller. 1016s # * @arg_an_o: Argument passed by remote caller. 1016s # * @arg_an_g: Argument passed by remote caller. 1016s # * @arg_an_h: Argument passed by remote caller. 1016s # * @arg_an_ay: Argument passed by remote caller. 1016s # * @arg_an_as: Argument passed by remote caller. 1016s # * @arg_an_ao: Argument passed by remote caller. 1016s # * @arg_an_aay: Argument passed by remote caller. 1016s # * @arg_an_asv: Argument passed by remote caller. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-method-with-many-args", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_callable_iface_method_marshal_method_with_many_args, 1016s # G_TYPE_BOOLEAN, 1016s # 19, 1016s # 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); 1016s # 1016s # /** 1016s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1016s # * @object: A #OrgProjectCallableIface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * @arg_an_b: Argument passed by remote caller. 1016s # * @arg_an_y: Argument passed by remote caller. 1016s # * @arg_an_n: Argument passed by remote caller. 1016s # * @arg_an_q: Argument passed by remote caller. 1016s # * @arg_an_i: Argument passed by remote caller. 1016s # * @arg_an_u: Argument passed by remote caller. 1016s # * @arg_an_x: Argument passed by remote caller. 1016s # * @arg_an_t: Argument passed by remote caller. 1016s # * @arg_an_d: Argument passed by remote caller. 1016s # * @arg_an_s: Argument passed by remote caller. 1016s # * @arg_an_o: Argument passed by remote caller. 1016s # * @arg_an_g: Argument passed by remote caller. 1016s # * @arg_an_h: Argument passed by remote caller. 1016s # * @arg_an_ay: Argument passed by remote caller. 1016s # * @arg_an_as: Argument passed by remote caller. 1016s # * @arg_an_ao: Argument passed by remote caller. 1016s # * @arg_an_aay: Argument passed by remote caller. 1016s # * @arg_an_asv: Argument passed by remote caller. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-same-method-with-many-args", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1016s # G_TYPE_BOOLEAN, 1016s # 19, 1016s # 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); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_method_with_many_args: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @arg_an_b: Argument to pass with the method invocation. 1016s # * @arg_an_y: Argument to pass with the method invocation. 1016s # * @arg_an_n: Argument to pass with the method invocation. 1016s # * @arg_an_q: Argument to pass with the method invocation. 1016s # * @arg_an_i: Argument to pass with the method invocation. 1016s # * @arg_an_u: Argument to pass with the method invocation. 1016s # * @arg_an_x: Argument to pass with the method invocation. 1016s # * @arg_an_t: Argument to pass with the method invocation. 1016s # * @arg_an_d: Argument to pass with the method invocation. 1016s # * @arg_an_s: Argument to pass with the method invocation. 1016s # * @arg_an_o: Argument to pass with the method invocation. 1016s # * @arg_an_g: Argument to pass with the method invocation. 1016s # * @arg_an_h: Argument to pass with the method invocation. 1016s # * @arg_an_ay: Argument to pass with the method invocation. 1016s # * @arg_an_as: Argument to pass with the method invocation. 1016s # * @arg_an_ao: Argument to pass with the method invocation. 1016s # * @arg_an_aay: Argument to pass with the method invocation. 1016s # * @arg_an_asv: Argument to pass with the method invocation. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_callable_iface_call_method_with_many_args ( 1016s # OrgProjectCallableIface *proxy, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "MethodWithManyArgs", 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_method_with_many_args_finish: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_callable_iface_call_method_with_many_args_finish ( 1016s # OrgProjectCallableIface *proxy, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "()"); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_method_with_many_args_sync: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @arg_an_b: Argument to pass with the method invocation. 1016s # * @arg_an_y: Argument to pass with the method invocation. 1016s # * @arg_an_n: Argument to pass with the method invocation. 1016s # * @arg_an_q: Argument to pass with the method invocation. 1016s # * @arg_an_i: Argument to pass with the method invocation. 1016s # * @arg_an_u: Argument to pass with the method invocation. 1016s # * @arg_an_x: Argument to pass with the method invocation. 1016s # * @arg_an_t: Argument to pass with the method invocation. 1016s # * @arg_an_d: Argument to pass with the method invocation. 1016s # * @arg_an_s: Argument to pass with the method invocation. 1016s # * @arg_an_o: Argument to pass with the method invocation. 1016s # * @arg_an_g: Argument to pass with the method invocation. 1016s # * @arg_an_h: Argument to pass with the method invocation. 1016s # * @arg_an_ay: Argument to pass with the method invocation. 1016s # * @arg_an_as: Argument to pass with the method invocation. 1016s # * @arg_an_ao: Argument to pass with the method invocation. 1016s # * @arg_an_aay: Argument to pass with the method invocation. 1016s # * @arg_an_asv: Argument to pass with the method invocation. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_callable_iface_call_method_with_many_args_sync ( 1016s # OrgProjectCallableIface *proxy, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "MethodWithManyArgs", 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "()"); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_same_method_with_many_args: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @arg_an_b: Argument to pass with the method invocation. 1016s # * @arg_an_y: Argument to pass with the method invocation. 1016s # * @arg_an_n: Argument to pass with the method invocation. 1016s # * @arg_an_q: Argument to pass with the method invocation. 1016s # * @arg_an_i: Argument to pass with the method invocation. 1016s # * @arg_an_u: Argument to pass with the method invocation. 1016s # * @arg_an_x: Argument to pass with the method invocation. 1016s # * @arg_an_t: Argument to pass with the method invocation. 1016s # * @arg_an_d: Argument to pass with the method invocation. 1016s # * @arg_an_s: Argument to pass with the method invocation. 1016s # * @arg_an_o: Argument to pass with the method invocation. 1016s # * @arg_an_g: Argument to pass with the method invocation. 1016s # * @arg_an_h: Argument to pass with the method invocation. 1016s # * @arg_an_ay: Argument to pass with the method invocation. 1016s # * @arg_an_as: Argument to pass with the method invocation. 1016s # * @arg_an_ao: Argument to pass with the method invocation. 1016s # * @arg_an_aay: Argument to pass with the method invocation. 1016s # * @arg_an_asv: Argument to pass with the method invocation. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_callable_iface_call_same_method_with_many_args ( 1016s # OrgProjectCallableIface *proxy, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "SameMethodWithManyArgs", 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1016s # OrgProjectCallableIface *proxy, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "()"); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @arg_an_b: Argument to pass with the method invocation. 1016s # * @arg_an_y: Argument to pass with the method invocation. 1016s # * @arg_an_n: Argument to pass with the method invocation. 1016s # * @arg_an_q: Argument to pass with the method invocation. 1016s # * @arg_an_i: Argument to pass with the method invocation. 1016s # * @arg_an_u: Argument to pass with the method invocation. 1016s # * @arg_an_x: Argument to pass with the method invocation. 1016s # * @arg_an_t: Argument to pass with the method invocation. 1016s # * @arg_an_d: Argument to pass with the method invocation. 1016s # * @arg_an_s: Argument to pass with the method invocation. 1016s # * @arg_an_o: Argument to pass with the method invocation. 1016s # * @arg_an_g: Argument to pass with the method invocation. 1016s # * @arg_an_h: Argument to pass with the method invocation. 1016s # * @arg_an_ay: Argument to pass with the method invocation. 1016s # * @arg_an_as: Argument to pass with the method invocation. 1016s # * @arg_an_ao: Argument to pass with the method invocation. 1016s # * @arg_an_aay: Argument to pass with the method invocation. 1016s # * @arg_an_asv: Argument to pass with the method invocation. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1016s # OrgProjectCallableIface *proxy, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "SameMethodWithManyArgs", 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "()"); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_complete_method_with_many_args: 1016s # * @object: A #OrgProjectCallableIface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_callable_iface_complete_method_with_many_args ( 1016s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("()")); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_complete_same_method_with_many_args: 1016s # * @object: A #OrgProjectCallableIface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_callable_iface_complete_same_method_with_many_args ( 1016s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("()")); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceProxy: 1016s # * 1016s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectCallableIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectCallableIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_callable_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_callable_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_callable_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectCallableIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_callable_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_callable_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_callable_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1016s # { 1016s # _org_project_callable_iface_skeleton_handle_method_call, 1016s # _org_project_callable_iface_skeleton_handle_get_property, 1016s # _org_project_callable_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_callable_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_callable_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.OtherCallableIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectOtherCallableIface 1016s # * @title: OrgProjectOtherCallableIface 1016s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1016s # { 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "MethodWithManyArgs", 1016s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "handle-method-with-many-args", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1016s # { 1016s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.OtherCallableIface", 1016s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-other-callable-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_other_callable_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _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, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectOtherCallableIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherCallableIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1016s # */ 1016s # 1016s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1016s # * @object: A #OrgProjectOtherCallableIface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * @arg_an_b: Argument passed by remote caller. 1016s # * @arg_an_y: Argument passed by remote caller. 1016s # * @arg_an_n: Argument passed by remote caller. 1016s # * @arg_an_q: Argument passed by remote caller. 1016s # * @arg_an_i: Argument passed by remote caller. 1016s # * @arg_an_u: Argument passed by remote caller. 1016s # * @arg_an_x: Argument passed by remote caller. 1016s # * @arg_an_t: Argument passed by remote caller. 1016s # * @arg_an_d: Argument passed by remote caller. 1016s # * @arg_an_s: Argument passed by remote caller. 1016s # * @arg_an_o: Argument passed by remote caller. 1016s # * @arg_an_g: Argument passed by remote caller. 1016s # * @arg_an_h: Argument passed by remote caller. 1016s # * @arg_an_ay: Argument passed by remote caller. 1016s # * @arg_an_as: Argument passed by remote caller. 1016s # * @arg_an_ao: Argument passed by remote caller. 1016s # * @arg_an_aay: Argument passed by remote caller. 1016s # * @arg_an_asv: Argument passed by remote caller. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-method-with-many-args", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1016s # G_TYPE_BOOLEAN, 1016s # 19, 1016s # 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); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_call_method_with_many_args: 1016s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1016s # * @arg_an_b: Argument to pass with the method invocation. 1016s # * @arg_an_y: Argument to pass with the method invocation. 1016s # * @arg_an_n: Argument to pass with the method invocation. 1016s # * @arg_an_q: Argument to pass with the method invocation. 1016s # * @arg_an_i: Argument to pass with the method invocation. 1016s # * @arg_an_u: Argument to pass with the method invocation. 1016s # * @arg_an_x: Argument to pass with the method invocation. 1016s # * @arg_an_t: Argument to pass with the method invocation. 1016s # * @arg_an_d: Argument to pass with the method invocation. 1016s # * @arg_an_s: Argument to pass with the method invocation. 1016s # * @arg_an_o: Argument to pass with the method invocation. 1016s # * @arg_an_g: Argument to pass with the method invocation. 1016s # * @arg_an_h: Argument to pass with the method invocation. 1016s # * @arg_an_ay: Argument to pass with the method invocation. 1016s # * @arg_an_as: Argument to pass with the method invocation. 1016s # * @arg_an_ao: Argument to pass with the method invocation. 1016s # * @arg_an_aay: Argument to pass with the method invocation. 1016s # * @arg_an_asv: Argument to pass with the method invocation. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_other_callable_iface_call_method_with_many_args ( 1016s # OrgProjectOtherCallableIface *proxy, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "MethodWithManyArgs", 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1016s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1016s # OrgProjectOtherCallableIface *proxy, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "()"); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1016s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1016s # * @arg_an_b: Argument to pass with the method invocation. 1016s # * @arg_an_y: Argument to pass with the method invocation. 1016s # * @arg_an_n: Argument to pass with the method invocation. 1016s # * @arg_an_q: Argument to pass with the method invocation. 1016s # * @arg_an_i: Argument to pass with the method invocation. 1016s # * @arg_an_u: Argument to pass with the method invocation. 1016s # * @arg_an_x: Argument to pass with the method invocation. 1016s # * @arg_an_t: Argument to pass with the method invocation. 1016s # * @arg_an_d: Argument to pass with the method invocation. 1016s # * @arg_an_s: Argument to pass with the method invocation. 1016s # * @arg_an_o: Argument to pass with the method invocation. 1016s # * @arg_an_g: Argument to pass with the method invocation. 1016s # * @arg_an_h: Argument to pass with the method invocation. 1016s # * @arg_an_ay: Argument to pass with the method invocation. 1016s # * @arg_an_as: Argument to pass with the method invocation. 1016s # * @arg_an_ao: Argument to pass with the method invocation. 1016s # * @arg_an_aay: Argument to pass with the method invocation. 1016s # * @arg_an_asv: Argument to pass with the method invocation. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1016s # OrgProjectOtherCallableIface *proxy, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "MethodWithManyArgs", 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "()"); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_complete_method_with_many_args: 1016s # * @object: A #OrgProjectOtherCallableIface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_other_callable_iface_complete_method_with_many_args ( 1016s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("()")); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectOtherCallableIfaceProxy: 1016s # * 1016s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherCallableIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_other_callable_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherCallableIface * 1016s # org_project_other_callable_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherCallableIface * 1016s # org_project_other_callable_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_other_callable_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherCallableIface * 1016s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherCallableIface * 1016s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectOtherCallableIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherCallableIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1016s # { 1016s # _org_project_other_callable_iface_skeleton_handle_method_call, 1016s # _org_project_other_callable_iface_skeleton_handle_get_property, 1016s # _org_project_other_callable_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_other_callable_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_callable_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectOtherCallableIface * 1016s # org_project_other_callable_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpkpdmekdl 1016s # /tmp/tmpkpdmekdl/tmpqu49vwcb.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpkpdmekdl/tmpqu49vwcb.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.CallableIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectCallableIface 1016s # * @title: OrgProjectCallableIface 1016s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for org.project.CallableIface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1016s # { 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1016s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "MethodWithManyArgs", 1016s # NULL, 1016s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-method-with-many-args", 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1016s # { 1016s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.CallableIface", 1016s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-callable-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_callable_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_callable_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_callable_iface_method_marshal_method_with_many_args ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectCallableIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.CallableIface. 1016s # */ 1016s # 1016s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * OrgProjectCallableIface::handle-method-with-many-args: 1016s # * @object: A #OrgProjectCallableIface. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-method-with-many-args", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # org_project_callable_iface_method_marshal_method_with_many_args, 1016s # G_TYPE_BOOLEAN, 1016s # 1, 1016s # G_TYPE_DBUS_METHOD_INVOCATION); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_method_with_many_args: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # org_project_callable_iface_call_method_with_many_args ( 1016s # OrgProjectCallableIface *proxy, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1016s # "MethodWithManyArgs", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_method_with_many_args_finish: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_callable_iface_call_method_with_many_args_finish ( 1016s # OrgProjectCallableIface *proxy, 1016s # gboolean *out_an_b, 1016s # guchar *out_an_y, 1016s # gint16 *out_an_n, 1016s # guint16 *out_an_q, 1016s # gint *out_an_i, 1016s # guint *out_an_u, 1016s # gint64 *out_an_x, 1016s # guint64 *out_an_t, 1016s # gdouble *out_an_d, 1016s # gchar **out_an_s, 1016s # gchar **out_an_o, 1016s # gchar **out_an_g, 1016s # GVariant **out_an_h, 1016s # gchar **out_an_ay, 1016s # gchar ***out_an_as, 1016s # gchar ***out_an_ao, 1016s # gchar ***out_an_aay, 1016s # GVariant **out_an_asv, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # out_an_b, 1016s # out_an_y, 1016s # out_an_n, 1016s # out_an_q, 1016s # out_an_i, 1016s # out_an_u, 1016s # out_an_x, 1016s # out_an_t, 1016s # out_an_d, 1016s # out_an_s, 1016s # out_an_o, 1016s # out_an_g, 1016s # out_an_h, 1016s # out_an_ay, 1016s # out_an_as, 1016s # out_an_ao, 1016s # out_an_aay, 1016s # out_an_asv); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_call_method_with_many_args_sync: 1016s # * @proxy: A #OrgProjectCallableIfaceProxy. 1016s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1016s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # org_project_callable_iface_call_method_with_many_args_sync ( 1016s # OrgProjectCallableIface *proxy, 1016s # gboolean *out_an_b, 1016s # guchar *out_an_y, 1016s # gint16 *out_an_n, 1016s # guint16 *out_an_q, 1016s # gint *out_an_i, 1016s # guint *out_an_u, 1016s # gint64 *out_an_x, 1016s # guint64 *out_an_t, 1016s # gdouble *out_an_d, 1016s # gchar **out_an_s, 1016s # gchar **out_an_o, 1016s # gchar **out_an_g, 1016s # GVariant **out_an_h, 1016s # gchar **out_an_ay, 1016s # gchar ***out_an_as, 1016s # gchar ***out_an_ao, 1016s # gchar ***out_an_aay, 1016s # GVariant **out_an_asv, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1016s # "MethodWithManyArgs", 1016s # g_variant_new ("()"), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # out_an_b, 1016s # out_an_y, 1016s # out_an_n, 1016s # out_an_q, 1016s # out_an_i, 1016s # out_an_u, 1016s # out_an_x, 1016s # out_an_t, 1016s # out_an_d, 1016s # out_an_s, 1016s # out_an_o, 1016s # out_an_g, 1016s # out_an_h, 1016s # out_an_ay, 1016s # out_an_as, 1016s # out_an_ao, 1016s # out_an_aay, 1016s # out_an_asv); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_complete_method_with_many_args: 1016s # * @object: A #OrgProjectCallableIface. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @an_b: Parameter to return. 1016s # * @an_y: Parameter to return. 1016s # * @an_n: Parameter to return. 1016s # * @an_q: Parameter to return. 1016s # * @an_i: Parameter to return. 1016s # * @an_u: Parameter to return. 1016s # * @an_x: Parameter to return. 1016s # * @an_t: Parameter to return. 1016s # * @an_d: Parameter to return. 1016s # * @an_s: Parameter to return. 1016s # * @an_o: Parameter to return. 1016s # * @an_g: Parameter to return. 1016s # * @an_h: Parameter to return. 1016s # * @an_ay: Parameter to return. 1016s # * @an_as: Parameter to return. 1016s # * @an_ao: Parameter to return. 1016s # * @an_aay: Parameter to return. 1016s # * @an_asv: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # org_project_callable_iface_complete_method_with_many_args ( 1016s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # gboolean an_b, 1016s # guchar an_y, 1016s # gint16 an_n, 1016s # guint16 an_q, 1016s # gint an_i, 1016s # guint an_u, 1016s # gint64 an_x, 1016s # guint64 an_t, 1016s # gdouble an_d, 1016s # const gchar *an_s, 1016s # const gchar *an_o, 1016s # const gchar *an_g, 1016s # GVariant *an_h, 1016s # const gchar *an_ay, 1016s # const gchar *const *an_as, 1016s # const gchar *const *an_ao, 1016s # const gchar *const *an_aay, 1016s # GVariant *an_asv) 1016s # { 1016s # g_dbus_method_invocation_return_value (invocation, 1016s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # an_b, 1016s # an_y, 1016s # an_n, 1016s # an_q, 1016s # an_i, 1016s # an_u, 1016s # an_x, 1016s # an_t, 1016s # an_d, 1016s # an_s, 1016s # an_o, 1016s # an_g, 1016s # an_h, 1016s # an_ay, 1016s # an_as, 1016s # an_ao, 1016s # an_aay, 1016s # an_asv)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceProxy: 1016s # * 1016s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectCallableIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectCallableIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_callable_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_callable_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_callable_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectCallableIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectCallableIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_callable_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_callable_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_callable_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1016s # { 1016s # _org_project_callable_iface_skeleton_handle_method_call, 1016s # _org_project_callable_iface_skeleton_handle_get_property, 1016s # _org_project_callable_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_callable_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_callable_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_callable_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectCallableIface * 1016s # org_project_callable_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpqpg_qq_6 1016s # /tmp/tmpqpg_qq_6/tmpv30mi712.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqpg_qq_6/tmpv30mi712.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1016s # (void *data1, 1016s # GDBusMethodInvocation *arg_method_invocation, 1016s # GUnixFDList *arg_fd_list, 1016s # const gchar *arg_greeting, 1016s # void *data2); 1016s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # gboolean v_return; 1016s # 1016s # g_return_if_fail (return_value != NULL); 1016s # g_return_if_fail (n_param_values == 4); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # v_return = 1016s # callback (data1, 1016s # g_marshal_value_peek_object (param_values + 1), 1016s # g_marshal_value_peek_object (param_values + 2), 1016s # g_marshal_value_peek_string (param_values + 3), 1016s # data2); 1016s # 1016s # g_value_set_boolean (return_value, v_return); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface test.FDPassing 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:TestFDPassing 1016s # * @title: TestFDPassing 1016s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1016s # * 1016s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1016s # */ 1016s # 1016s # /* ---- Introspection data for test.FDPassing ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "greeting", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1016s # { 1016s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "response", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1016s # { 1016s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "HelloFD", 1016s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1016s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "handle-hello-fd", 1016s # TRUE 1016s # }; 1016s # 1016s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1016s # { 1016s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "test.FDPassing", 1016s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1016s # NULL, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "test-fdpassing", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * test_fdpassing_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # test_fdpassing_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # test_fdpassing_method_marshal_hello_fd ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * TestFDPassing: 1016s # * 1016s # * Abstract interface type for the D-Bus interface test.FDPassing. 1016s # */ 1016s # 1016s # /** 1016s # * TestFDPassingIface: 1016s # * @parent_iface: The parent interface. 1016s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1016s # * 1016s # * Virtual table for the D-Bus interface test.FDPassing. 1016s # */ 1016s # 1016s # typedef TestFDPassingIface TestFDPassingInterface; 1016s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # test_fdpassing_default_init (TestFDPassingIface *iface) 1016s # { 1016s # /* GObject signals for incoming D-Bus method calls: */ 1016s # /** 1016s # * TestFDPassing::handle-hello-fd: 1016s # * @object: A #TestFDPassing. 1016s # * @invocation: A #GDBusMethodInvocation. 1016s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1016s # * @arg_greeting: Argument passed by remote caller. 1016s # * 1016s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1016s # * 1016s # * 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. 1016s # * 1016s # * 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. 1016s # */ 1016s # g_signal_new ("handle-hello-fd", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1016s # g_signal_accumulator_true_handled, 1016s # NULL, 1016s # test_fdpassing_method_marshal_hello_fd, 1016s # G_TYPE_BOOLEAN, 1016s # 3, 1016s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_call_hello_fd: 1016s # * @proxy: A #TestFDPassingProxy. 1016s # * @arg_greeting: Argument to pass with the method invocation. 1016s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1016s # * 1016s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1016s # */ 1016s # void 1016s # test_fdpassing_call_hello_fd ( 1016s # TestFDPassing *proxy, 1016s # const gchar *arg_greeting, 1016s # GUnixFDList *fd_list, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1016s # "HelloFD", 1016s # g_variant_new ("(s)", 1016s # arg_greeting), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # fd_list, 1016s # cancellable, 1016s # callback, 1016s # user_data); 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_call_hello_fd_finish: 1016s # * @proxy: A #TestFDPassingProxy. 1016s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # test_fdpassing_call_hello_fd_finish ( 1016s # TestFDPassing *proxy, 1016s # gchar **out_response, 1016s # GUnixFDList **out_fd_list, 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(s)", 1016s # out_response); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_call_hello_fd_sync: 1016s # * @proxy: A #TestFDPassingProxy. 1016s # * @arg_greeting: Argument to pass with the method invocation. 1016s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1016s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1016s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL. 1016s # * 1016s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1016s # * 1016s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1016s # * 1016s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1016s # */ 1016s # gboolean 1016s # test_fdpassing_call_hello_fd_sync ( 1016s # TestFDPassing *proxy, 1016s # const gchar *arg_greeting, 1016s # GUnixFDList *fd_list, 1016s # gchar **out_response, 1016s # GUnixFDList **out_fd_list, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GVariant *_ret; 1016s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1016s # "HelloFD", 1016s # g_variant_new ("(s)", 1016s # arg_greeting), 1016s # G_DBUS_CALL_FLAGS_NONE, 1016s # -1, 1016s # fd_list, 1016s # out_fd_list, 1016s # cancellable, 1016s # error); 1016s # if (_ret == NULL) 1016s # goto _out; 1016s # g_variant_get (_ret, 1016s # "(s)", 1016s # out_response); 1016s # g_variant_unref (_ret); 1016s # _out: 1016s # return _ret != NULL; 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_complete_hello_fd: 1016s # * @object: A #TestFDPassing. 1016s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1016s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1016s # * @response: Parameter to return. 1016s # * 1016s # * 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. 1016s # * 1016s # * This method will free @invocation, you cannot use it afterwards. 1016s # */ 1016s # void 1016s # test_fdpassing_complete_hello_fd ( 1016s # TestFDPassing *object G_GNUC_UNUSED, 1016s # GDBusMethodInvocation *invocation, 1016s # GUnixFDList *fd_list, 1016s # const gchar *response) 1016s # { 1016s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1016s # g_variant_new ("(s)", 1016s # response), 1016s # fd_list); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * TestFDPassingProxy: 1016s # * 1016s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * TestFDPassingProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #TestFDPassingProxy. 1016s # */ 1016s # 1016s # struct _TestFDPassingProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (TestFDPassingProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # test_fdpassing_proxy_finalize (GObject *object) 1016s # { 1016s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1016s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1016s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1016s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # test_fdpassing_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with test_fdpassing_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # TestFDPassing * 1016s # test_fdpassing_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return TEST_FDPASSING (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # TestFDPassing * 1016s # test_fdpassing_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return TEST_FDPASSING (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * test_fdpassing_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # test_fdpassing_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # TestFDPassing * 1016s # test_fdpassing_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return TEST_FDPASSING (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # TestFDPassing * 1016s # test_fdpassing_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return TEST_FDPASSING (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * TestFDPassingSkeleton: 1016s # * 1016s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * TestFDPassingSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #TestFDPassingSkeleton. 1016s # */ 1016s # 1016s # struct _TestFDPassingSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _test_fdpassing_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _test_fdpassing_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _test_fdpassing_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1016s # { 1016s # _test_fdpassing_skeleton_handle_method_call, 1016s # _test_fdpassing_skeleton_handle_get_property, 1016s # _test_fdpassing_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return test_fdpassing_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # test_fdpassing_skeleton_finalize (GObject *object) 1016s # { 1016s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * test_fdpassing_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1016s # * 1016s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1016s # */ 1016s # TestFDPassing * 1016s # test_fdpassing_skeleton_new (void) 1016s # { 1016s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 15 __main__.TestCodegen.test_generate_rst 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpf6fg1wvs 1016s # /tmp/tmpf6fg1wvs/tmpcmoyna25.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpf6fg1wvs/tmpcmoyna25.xml', '--generate-rst', 'test'] 1016s # Return code: 0 1016s # Output: 1016s # 1016s # Error: 1016s ok 16 __main__.TestCodegen.test_generate_rst_method 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpiip7y_3u 1016s # /tmp/tmpiip7y_3u/tmpmjeixdaf.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpiip7y_3u/tmpmjeixdaf.xml', '--generate-rst', 'test'] 1016s # Return code: 0 1016s # Output: 1016s # 1016s # Error: 1016s ok 17 __main__.TestCodegen.test_generate_rst_property 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpmhv9muc4 1016s # /tmp/tmpmhv9muc4/tmphxh1zua7.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmhv9muc4/tmphxh1zua7.xml', '--generate-rst', 'test'] 1016s # Return code: 0 1016s # Output: 1016s # 1016s # Error: 1016s ok 18 __main__.TestCodegen.test_generate_rst_signal 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmppittx61m 1016s # /tmp/tmppittx61m/tmpib5s5kn9.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmppittx61m/tmpib5s5kn9.xml', '--generate-rst', 'test'] 1016s # Return code: 0 1016s # Output: 1016s # 1016s # Error: 1016s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmp0f96wxkd 1016s # /tmp/tmp0f96wxkd/tmps9h7al84.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp0f96wxkd/tmps9h7al84.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1016s # GClosure *closure, 1016s # GValue *return_value G_GNUC_UNUSED, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1016s # (void *data1, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv, 1016s # void *data2); 1016s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # 1016s # g_return_if_fail (n_param_values == 19); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # callback (data1, 1016s # g_marshal_value_peek_boolean (param_values + 1), 1016s # g_marshal_value_peek_uchar (param_values + 2), 1016s # g_marshal_value_peek_int (param_values + 3), 1016s # g_marshal_value_peek_uint (param_values + 4), 1016s # g_marshal_value_peek_int (param_values + 5), 1016s # g_marshal_value_peek_uint (param_values + 6), 1016s # g_marshal_value_peek_int64 (param_values + 7), 1016s # g_marshal_value_peek_uint64 (param_values + 8), 1016s # g_marshal_value_peek_double (param_values + 9), 1016s # g_marshal_value_peek_string (param_values + 10), 1016s # g_marshal_value_peek_string (param_values + 11), 1016s # g_marshal_value_peek_string (param_values + 12), 1016s # g_marshal_value_peek_variant (param_values + 13), 1016s # g_marshal_value_peek_string (param_values + 14), 1016s # g_marshal_value_peek_boxed (param_values + 15), 1016s # g_marshal_value_peek_boxed (param_values + 16), 1016s # g_marshal_value_peek_boxed (param_values + 17), 1016s # g_marshal_value_peek_variant (param_values + 18), 1016s # data2); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.SignalingIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectSignalingIface 1016s # * @title: OrgProjectSignalingIface 1016s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1016s # */ 1016s # 1016s # enum 1016s # { 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1016s # }; 1016s # 1016s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1016s # 1016s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SignalWithManyArgs", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "signal-with-many-args" 1016s # }; 1016s # 1016s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.SignalingIface", 1016s # NULL, 1016s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-signaling-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_signaling_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_signaling_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1016s # */ 1016s # 1016s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1016s # { 1016s # /* GObject signals for received D-Bus signals: */ 1016s # /** 1016s # * OrgProjectSignalingIface::signal-with-many-args: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_b: Argument. 1016s # * @arg_an_y: Argument. 1016s # * @arg_an_n: Argument. 1016s # * @arg_an_q: Argument. 1016s # * @arg_an_i: Argument. 1016s # * @arg_an_u: Argument. 1016s # * @arg_an_x: Argument. 1016s # * @arg_an_t: Argument. 1016s # * @arg_an_d: Argument. 1016s # * @arg_an_s: Argument. 1016s # * @arg_an_o: Argument. 1016s # * @arg_an_g: Argument. 1016s # * @arg_an_h: Argument. 1016s # * @arg_an_ay: Argument. 1016s # * @arg_an_as: Argument. 1016s # * @arg_an_ao: Argument. 1016s # * @arg_an_aay: Argument. 1016s # * @arg_an_asv: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1016s # g_signal_new ("signal-with-many-args", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1016s # G_TYPE_NONE, 1016s # 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); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_signal_with_many_args: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_b: Argument to pass with the signal. 1016s # * @arg_an_y: Argument to pass with the signal. 1016s # * @arg_an_n: Argument to pass with the signal. 1016s # * @arg_an_q: Argument to pass with the signal. 1016s # * @arg_an_i: Argument to pass with the signal. 1016s # * @arg_an_u: Argument to pass with the signal. 1016s # * @arg_an_x: Argument to pass with the signal. 1016s # * @arg_an_t: Argument to pass with the signal. 1016s # * @arg_an_d: Argument to pass with the signal. 1016s # * @arg_an_s: Argument to pass with the signal. 1016s # * @arg_an_o: Argument to pass with the signal. 1016s # * @arg_an_g: Argument to pass with the signal. 1016s # * @arg_an_h: Argument to pass with the signal. 1016s # * @arg_an_ay: Argument to pass with the signal. 1016s # * @arg_an_as: Argument to pass with the signal. 1016s # * @arg_an_ao: Argument to pass with the signal. 1016s # * @arg_an_aay: Argument to pass with the signal. 1016s # * @arg_an_asv: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SignalWithManyArgs" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_signal_with_many_args ( 1016s # OrgProjectSignalingIface *object, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceProxy: 1016s # * 1016s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectSignalingIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectSignalingIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_signaling_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_signaling_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_signaling_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_signaling_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1016s # { 1016s # _org_project_signaling_iface_skeleton_handle_method_call, 1016s # _org_project_signaling_iface_skeleton_handle_get_property, 1016s # _org_project_signaling_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_signaling_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1016s # OrgProjectSignalingIface *object, 1016s # gboolean arg_an_b, 1016s # guchar arg_an_y, 1016s # gint16 arg_an_n, 1016s # guint16 arg_an_q, 1016s # gint arg_an_i, 1016s # guint arg_an_u, 1016s # gint64 arg_an_x, 1016s # guint64 arg_an_t, 1016s # gdouble arg_an_d, 1016s # const gchar *arg_an_s, 1016s # const gchar *arg_an_o, 1016s # const gchar *arg_an_g, 1016s # GVariant *arg_an_h, 1016s # const gchar *arg_an_ay, 1016s # const gchar *const *arg_an_as, 1016s # const gchar *const *arg_an_ao, 1016s # const gchar *const *arg_an_aay, 1016s # GVariant *arg_an_asv) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1016s # arg_an_b, 1016s # arg_an_y, 1016s # arg_an_n, 1016s # arg_an_q, 1016s # arg_an_i, 1016s # arg_an_u, 1016s # arg_an_x, 1016s # arg_an_t, 1016s # arg_an_d, 1016s # arg_an_s, 1016s # arg_an_o, 1016s # arg_an_g, 1016s # arg_an_h, 1016s # arg_an_ay, 1016s # arg_an_as, 1016s # arg_an_ao, 1016s # arg_an_aay, 1016s # arg_an_asv)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1016s # { 1016s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmp_ckatxjk 1016s # /tmp/tmp_ckatxjk/tmplr2ilm2w.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp_ckatxjk/tmplr2ilm2w.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_VOID__INT64 ( 1016s # GClosure *closure, 1016s # GValue *return_value G_GNUC_UNUSED, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1016s # (void *data1, 1016s # gint64 arg_an_x, 1016s # void *data2); 1016s # _GDbusCodegenMarshalVoid_Int64Func callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # callback (data1, 1016s # g_marshal_value_peek_int64 (param_values + 1), 1016s # data2); 1016s # } 1016s # 1016s # static void 1016s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1016s # GClosure *closure, 1016s # GValue *return_value G_GNUC_UNUSED, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint G_GNUC_UNUSED, 1016s # void *marshal_data) 1016s # { 1016s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1016s # (void *data1, 1016s # guint64 arg_an_t, 1016s # void *data2); 1016s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1016s # GCClosure *cc = (GCClosure*) closure; 1016s # void *data1, *data2; 1016s # 1016s # g_return_if_fail (n_param_values == 2); 1016s # 1016s # if (G_CCLOSURE_SWAP_DATA (closure)) 1016s # { 1016s # data1 = closure->data; 1016s # data2 = g_value_peek_pointer (param_values + 0); 1016s # } 1016s # else 1016s # { 1016s # data1 = g_value_peek_pointer (param_values + 0); 1016s # data2 = closure->data; 1016s # } 1016s # 1016s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1016s # (marshal_data ? marshal_data : cc->callback); 1016s # 1016s # callback (data1, 1016s # g_marshal_value_peek_uint64 (param_values + 1), 1016s # data2); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.SignalingIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectSignalingIface 1016s # * @title: OrgProjectSignalingIface 1016s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1016s # */ 1016s # 1016s # enum 1016s # { 1016s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1016s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1016s # }; 1016s # 1016s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1016s # 1016s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "NoArgSignal", 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "no-arg-signal" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_b", 1016s # (gchar *) "b", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalB", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-b" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_y", 1016s # (gchar *) "y", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalY", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-y" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_n", 1016s # (gchar *) "n", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalN", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-n" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_q", 1016s # (gchar *) "q", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalQ", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-q" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_i", 1016s # (gchar *) "i", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalI", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-i" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_u", 1016s # (gchar *) "u", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalU", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-u" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_x", 1016s # (gchar *) "x", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalX", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-x" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_t", 1016s # (gchar *) "t", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalT", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-t" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_d", 1016s # (gchar *) "d", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalD", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-d" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_s", 1016s # (gchar *) "s", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalS", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-s" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_o", 1016s # (gchar *) "o", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalO", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-o" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_g", 1016s # (gchar *) "g", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalG", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-g" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_h", 1016s # (gchar *) "h", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalH", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-h" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ay", 1016s # (gchar *) "ay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalAY", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-ay" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_as", 1016s # (gchar *) "as", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalAS", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-as" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_ao", 1016s # (gchar *) "ao", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalAO", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-ao" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_aay", 1016s # (gchar *) "aay", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalAAY", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-aay" 1016s # }; 1016s # 1016s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "an_asv", 1016s # (gchar *) "a{sv}", 1016s # NULL 1016s # }, 1016s # FALSE 1016s # }; 1016s # 1016s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SingleArgSignalASV", 1016s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1016s # NULL 1016s # }, 1016s # "single-arg-signal-asv" 1016s # }; 1016s # 1016s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1016s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.SignalingIface", 1016s # NULL, 1016s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-signaling-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_signaling_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_signaling_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VOID (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__UCHAR (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__INT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__UINT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__INT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__UINT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__DOUBLE (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__STRING (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__STRING (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__STRING (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VARIANT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__STRING (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__BOXED (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__BOXED (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__BOXED (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VARIANT (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1016s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1016s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1016s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1016s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1016s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1016s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1016s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1016s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1016s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1016s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1016s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1016s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1016s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1016s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1016s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1016s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1016s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1016s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1016s # */ 1016s # 1016s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1016s # { 1016s # /* GObject signals for received D-Bus signals: */ 1016s # /** 1016s # * OrgProjectSignalingIface::no-arg-signal: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1016s # g_signal_new ("no-arg-signal", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1016s # G_TYPE_NONE, 1016s # 0); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-b: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_b: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1016s # g_signal_new ("single-arg-signal-b", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_BOOLEAN); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-y: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_y: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1016s # g_signal_new ("single-arg-signal-y", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_UCHAR); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-n: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_n: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1016s # g_signal_new ("single-arg-signal-n", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_INT); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-q: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_q: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1016s # g_signal_new ("single-arg-signal-q", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_UINT); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-i: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_i: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1016s # g_signal_new ("single-arg-signal-i", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_INT); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-u: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_u: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1016s # g_signal_new ("single-arg-signal-u", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_UINT); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-x: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_x: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1016s # g_signal_new ("single-arg-signal-x", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_INT64); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-t: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_t: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1016s # g_signal_new ("single-arg-signal-t", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_UINT64); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-d: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_d: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1016s # g_signal_new ("single-arg-signal-d", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_DOUBLE); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-s: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_s: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1016s # g_signal_new ("single-arg-signal-s", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRING); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-o: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_o: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1016s # g_signal_new ("single-arg-signal-o", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRING); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-g: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_g: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1016s # g_signal_new ("single-arg-signal-g", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRING); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-h: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_h: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1016s # g_signal_new ("single-arg-signal-h", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_VARIANT); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-ay: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_ay: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1016s # g_signal_new ("single-arg-signal-ay", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRING); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-as: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_as: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1016s # g_signal_new ("single-arg-signal-as", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRV); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-ao: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_ao: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1016s # g_signal_new ("single-arg-signal-ao", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRV); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-aay: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_aay: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1016s # g_signal_new ("single-arg-signal-aay", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_STRV); 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface::single-arg-signal-asv: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_asv: Argument. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1016s # g_signal_new ("single-arg-signal-asv", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1016s # G_TYPE_NONE, 1016s # 1, G_TYPE_VARIANT); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_no_arg_signal: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * 1016s # * Emits the "NoArgSignal" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_no_arg_signal ( 1016s # OrgProjectSignalingIface *object) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_b: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_b: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalB" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_b ( 1016s # OrgProjectSignalingIface *object, 1016s # gboolean arg_an_b) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_y: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_y: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalY" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_y ( 1016s # OrgProjectSignalingIface *object, 1016s # guchar arg_an_y) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_n: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_n: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalN" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_n ( 1016s # OrgProjectSignalingIface *object, 1016s # gint16 arg_an_n) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_q: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_q: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalQ" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_q ( 1016s # OrgProjectSignalingIface *object, 1016s # guint16 arg_an_q) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_i: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_i: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalI" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_i ( 1016s # OrgProjectSignalingIface *object, 1016s # gint arg_an_i) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_u: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_u: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalU" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_u ( 1016s # OrgProjectSignalingIface *object, 1016s # guint arg_an_u) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_x: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_x: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalX" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_x ( 1016s # OrgProjectSignalingIface *object, 1016s # gint64 arg_an_x) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_t: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_t: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalT" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_t ( 1016s # OrgProjectSignalingIface *object, 1016s # guint64 arg_an_t) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_d: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_d: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalD" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_d ( 1016s # OrgProjectSignalingIface *object, 1016s # gdouble arg_an_d) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_s: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_s: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalS" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_s ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_s) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_o: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_o: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalO" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_o ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_o) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_g: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_g: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalG" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_g ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_g) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_h: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_h: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalH" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_h ( 1016s # OrgProjectSignalingIface *object, 1016s # GVariant *arg_an_h) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_ay: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalAY" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_ay) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_as: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_as: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalAS" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_as ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *const *arg_an_as) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_ao: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalAO" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *const *arg_an_ao) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_aay: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *const *arg_an_aay) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * @arg_an_asv: Argument to pass with the signal. 1016s # * 1016s # * Emits the "SingleArgSignalASV" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1016s # OrgProjectSignalingIface *object, 1016s # GVariant *arg_an_asv) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceProxy: 1016s # * 1016s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectSignalingIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectSignalingIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_signaling_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_signaling_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_signaling_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_signaling_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1016s # { 1016s # _org_project_signaling_iface_skeleton_handle_method_call, 1016s # _org_project_signaling_iface_skeleton_handle_get_property, 1016s # _org_project_signaling_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_signaling_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1016s # OrgProjectSignalingIface *object) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1016s # OrgProjectSignalingIface *object, 1016s # gboolean arg_an_b) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1016s # arg_an_b)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1016s # OrgProjectSignalingIface *object, 1016s # guchar arg_an_y) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1016s # arg_an_y)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1016s # OrgProjectSignalingIface *object, 1016s # gint16 arg_an_n) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1016s # arg_an_n)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1016s # OrgProjectSignalingIface *object, 1016s # guint16 arg_an_q) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1016s # arg_an_q)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1016s # OrgProjectSignalingIface *object, 1016s # gint arg_an_i) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1016s # arg_an_i)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1016s # OrgProjectSignalingIface *object, 1016s # guint arg_an_u) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1016s # arg_an_u)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1016s # OrgProjectSignalingIface *object, 1016s # gint64 arg_an_x) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1016s # arg_an_x)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1016s # OrgProjectSignalingIface *object, 1016s # guint64 arg_an_t) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1016s # arg_an_t)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1016s # OrgProjectSignalingIface *object, 1016s # gdouble arg_an_d) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1016s # arg_an_d)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_s) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1016s # arg_an_s)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_o) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1016s # arg_an_o)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_g) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1016s # arg_an_g)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1016s # OrgProjectSignalingIface *object, 1016s # GVariant *arg_an_h) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1016s # arg_an_h)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *arg_an_ay) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1016s # arg_an_ay)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *const *arg_an_as) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1016s # arg_an_as)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *const *arg_an_ao) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1016s # arg_an_ao)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1016s # OrgProjectSignalingIface *object, 1016s # const gchar *const *arg_an_aay) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1016s # arg_an_aay)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1016s # OrgProjectSignalingIface *object, 1016s # GVariant *arg_an_asv) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1016s # arg_an_asv)); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1016s # { 1016s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1016s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1016s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1016s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1016s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1016s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1016s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1016s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1016s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1016s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1016s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1016s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1016s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1016s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1016s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1016s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1016s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1016s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1016s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmpuho0gqc7 1016s # /tmp/tmpuho0gqc7/tmpxrhaa5af.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpuho0gqc7/tmpxrhaa5af.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.UsefulInterface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectUsefulInterface 1016s # * @title: OrgProjectUsefulInterface 1016s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1016s # */ 1016s # 1016s # enum 1016s # { 1016s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1016s # }; 1016s # 1016s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1016s # 1016s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SimpleSignal", 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "simple-signal" 1016s # }; 1016s # 1016s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1016s # { 1016s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.UsefulInterface", 1016s # NULL, 1016s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-useful-interface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_useful_interface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_useful_interface_signal_marshal_simple_signal ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VOID (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1016s # */ 1016s # 1016s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # /* GObject signals for received D-Bus signals: */ 1016s # /** 1016s # * OrgProjectUsefulInterface::simple-signal: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1016s # g_signal_new ("simple-signal", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1016s # NULL, 1016s # NULL, 1016s # org_project_useful_interface_signal_marshal_simple_signal, 1016s # G_TYPE_NONE, 1016s # 0); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_emit_simple_signal: 1016s # * @object: A #OrgProjectUsefulInterface. 1016s # * 1016s # * Emits the "SimpleSignal" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_useful_interface_emit_simple_signal ( 1016s # OrgProjectUsefulInterface *object) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxy: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1016s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1016s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_useful_interface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # g_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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeleton: 1016s # * 1016s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectUsefulInterfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_useful_interface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_useful_interface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_useful_interface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1016s # { 1016s # _org_project_useful_interface_skeleton_handle_method_call, 1016s # _org_project_useful_interface_skeleton_handle_get_property, 1016s # _org_project_useful_interface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_useful_interface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # _org_project_useful_interface_on_signal_simple_signal ( 1016s # OrgProjectUsefulInterface *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_useful_interface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1016s # { 1016s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1016s # } 1016s # 1016s # /** 1016s # * org_project_useful_interface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectUsefulInterface * 1016s # org_project_useful_interface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.OtherIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectOtherIface 1016s # * @title: OrgProjectOtherIface 1016s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1016s # */ 1016s # 1016s # enum 1016s # { 1016s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1016s # }; 1016s # 1016s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1016s # 1016s # /* ---- Introspection data for org.project.OtherIface ---- */ 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SimpleSignal", 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "simple-signal" 1016s # }; 1016s # 1016s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1016s # { 1016s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.OtherIface", 1016s # NULL, 1016s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-other-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_other_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_other_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_other_iface_signal_marshal_simple_signal ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VOID (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectOtherIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.OtherIface. 1016s # */ 1016s # 1016s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1016s # { 1016s # /* GObject signals for received D-Bus signals: */ 1016s # /** 1016s # * OrgProjectOtherIface::simple-signal: 1016s # * @object: A #OrgProjectOtherIface. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1016s # g_signal_new ("simple-signal", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1016s # NULL, 1016s # NULL, 1016s # org_project_other_iface_signal_marshal_simple_signal, 1016s # G_TYPE_NONE, 1016s # 0); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_emit_simple_signal: 1016s # * @object: A #OrgProjectOtherIface. 1016s # * 1016s # * Emits the "SimpleSignal" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_other_iface_emit_simple_signal ( 1016s # OrgProjectOtherIface *object) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectOtherIfaceProxy: 1016s # * 1016s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectOtherIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectOtherIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_other_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_other_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherIface * 1016s # org_project_other_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherIface * 1016s # org_project_other_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_other_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_other_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherIface * 1016s # org_project_other_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherIface * 1016s # org_project_other_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectOtherIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectOtherIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_other_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_other_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_other_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1016s # { 1016s # _org_project_other_iface_skeleton_handle_method_call, 1016s # _org_project_other_iface_skeleton_handle_get_property, 1016s # _org_project_other_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_other_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # _org_project_other_iface_on_signal_simple_signal ( 1016s # OrgProjectOtherIface *object) 1016s # { 1016s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_other_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1016s # { 1016s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectOtherIface * 1016s # org_project_other_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1016s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1016s # gdbus-codegen: /usr/bin/gdbus-codegen 1016s # tmpdir: /tmp/tmp859yaexf 1016s # /tmp/tmp859yaexf/tmpnmdxv0ct.xml: 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # 1016s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp859yaexf/tmpnmdxv0ct.xml', '--output', '-', '--body'] 1016s # Return code: 0 1016s # Output: 1016s # /* 1016s # * This file is generated by gdbus-codegen, do not modify it. 1016s # * 1016s # * The license of this code is the same as for the D-Bus interface description 1016s # * it was derived from. Note that it links to GLib, so must comply with the 1016s # * LGPL linking clauses. 1016s # */ 1016s # 1016s # #ifdef HAVE_CONFIG_H 1016s # # include "config.h" 1016s # #endif 1016s # 1016s # #include 1016s # #ifdef G_OS_UNIX 1016s # # include 1016s # #endif 1016s # 1016s # #ifdef G_ENABLE_DEBUG 1016s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1016s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1016s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1016s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1016s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1016s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1016s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1016s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1016s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1016s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1016s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1016s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1016s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1016s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1016s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1016s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1016s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1016s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1016s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1016s # #else /* !G_ENABLE_DEBUG */ 1016s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1016s # * Do not access GValues directly in your code. Instead, use the 1016s # * g_value_get_*() functions 1016s # */ 1016s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1016s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1016s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1016s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1016s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1016s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1016s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1016s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1016s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1016s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1016s # #endif /* !G_ENABLE_DEBUG */ 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusArgInfo parent_struct; 1016s # gboolean use_gvariant; 1016s # } _ExtendedGDBusArgInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusMethodInfo parent_struct; 1016s # const gchar *signal_name; 1016s # gboolean pass_fdlist; 1016s # } _ExtendedGDBusMethodInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusSignalInfo parent_struct; 1016s # const gchar *signal_name; 1016s # } _ExtendedGDBusSignalInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusPropertyInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # guint use_gvariant : 1; 1016s # guint emits_changed_signal : 1; 1016s # } _ExtendedGDBusPropertyInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # GDBusInterfaceInfo parent_struct; 1016s # const gchar *hyphen_name; 1016s # } _ExtendedGDBusInterfaceInfo; 1016s # 1016s # typedef struct 1016s # { 1016s # const _ExtendedGDBusPropertyInfo *info; 1016s # guint prop_id; 1016s # GValue orig_value; /* the value before the change */ 1016s # } ChangedProperty; 1016s # 1016s # static void 1016s # _changed_property_free (ChangedProperty *data) 1016s # { 1016s # g_value_unset (&data->orig_value); 1016s # g_free (data); 1016s # } 1016s # 1016s # static gboolean 1016s # _g_strv_equal0 (gchar **a, gchar **b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # guint n; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # if (g_strv_length (a) != g_strv_length (b)) 1016s # goto out; 1016s # for (n = 0; a[n] != NULL; n++) 1016s # if (g_strcmp0 (a[n], b[n]) != 0) 1016s # goto out; 1016s # ret = TRUE; 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _g_variant_equal0 (GVariant *a, GVariant *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # if (a == NULL && b == NULL) 1016s # { 1016s # ret = TRUE; 1016s # goto out; 1016s # } 1016s # if (a == NULL || b == NULL) 1016s # goto out; 1016s # ret = g_variant_equal (a, b); 1016s # out: 1016s # return ret; 1016s # } 1016s # 1016s # G_GNUC_UNUSED static gboolean 1016s # _g_value_equal (const GValue *a, const GValue *b) 1016s # { 1016s # gboolean ret = FALSE; 1016s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1016s # switch (G_VALUE_TYPE (a)) 1016s # { 1016s # case G_TYPE_BOOLEAN: 1016s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1016s # break; 1016s # case G_TYPE_UCHAR: 1016s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1016s # break; 1016s # case G_TYPE_INT: 1016s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1016s # break; 1016s # case G_TYPE_UINT: 1016s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1016s # break; 1016s # case G_TYPE_INT64: 1016s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1016s # break; 1016s # case G_TYPE_UINT64: 1016s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1016s # break; 1016s # case G_TYPE_DOUBLE: 1016s # { 1016s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1016s # gdouble da = g_value_get_double (a); 1016s # gdouble db = g_value_get_double (b); 1016s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1016s # } 1016s # break; 1016s # case G_TYPE_STRING: 1016s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1016s # break; 1016s # case G_TYPE_VARIANT: 1016s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1016s # break; 1016s # default: 1016s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1016s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1016s # else 1016s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1016s # break; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.SignalingIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectSignalingIface 1016s # * @title: OrgProjectSignalingIface 1016s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1016s # */ 1016s # 1016s # enum 1016s # { 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1016s # }; 1016s # 1016s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1016s # 1016s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SimpleSignal", 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "simple-signal" 1016s # }; 1016s # 1016s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1016s # { 1016s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.SignalingIface", 1016s # NULL, 1016s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-signaling-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_signaling_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_signaling_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_signaling_iface_signal_marshal_simple_signal ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VOID (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectSignalingIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1016s # */ 1016s # 1016s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1016s # { 1016s # /* GObject signals for received D-Bus signals: */ 1016s # /** 1016s # * OrgProjectSignalingIface::simple-signal: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1016s # g_signal_new ("simple-signal", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1016s # NULL, 1016s # NULL, 1016s # org_project_signaling_iface_signal_marshal_simple_signal, 1016s # G_TYPE_NONE, 1016s # 0); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_emit_simple_signal: 1016s # * @object: A #OrgProjectSignalingIface. 1016s # * 1016s # * Emits the "SimpleSignal" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_emit_simple_signal ( 1016s # OrgProjectSignalingIface *object) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceProxy: 1016s # * 1016s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectSignalingIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectSignalingIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_signaling_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_signaling_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectSignalingIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_signaling_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_signaling_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_signaling_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1016s # { 1016s # _org_project_signaling_iface_skeleton_handle_method_call, 1016s # _org_project_signaling_iface_skeleton_handle_get_property, 1016s # _org_project_signaling_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_signaling_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # _org_project_signaling_iface_on_signal_simple_signal ( 1016s # OrgProjectSignalingIface *object) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1016s # { 1016s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1016s # } 1016s # 1016s # /** 1016s # * org_project_signaling_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectSignalingIface * 1016s # org_project_signaling_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ 1016s # * Code for interface org.project.OtherSignalingIface 1016s # * ------------------------------------------------------------------------ 1016s # */ 1016s # 1016s # /** 1016s # * SECTION:OrgProjectOtherSignalingIface 1016s # * @title: OrgProjectOtherSignalingIface 1016s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1016s # * 1016s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1016s # */ 1016s # 1016s # enum 1016s # { 1016s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1016s # }; 1016s # 1016s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1016s # 1016s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1016s # 1016s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "SimpleSignal", 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "simple-signal" 1016s # }; 1016s # 1016s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1016s # { 1016s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1016s # NULL 1016s # }; 1016s # 1016s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1016s # { 1016s # { 1016s # -1, 1016s # (gchar *) "org.project.OtherSignalingIface", 1016s # NULL, 1016s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1016s # NULL, 1016s # NULL 1016s # }, 1016s # "org-project-other-signaling-iface", 1016s # }; 1016s # 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_interface_info: 1016s # * 1016s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1016s # * 1016s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1016s # */ 1016s # GDBusInterfaceInfo * 1016s # org_project_other_signaling_iface_interface_info (void) 1016s # { 1016s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_override_properties: 1016s # * @klass: The class structure for a #GObject derived class. 1016s # * @property_id_begin: The property id to assign to the first overridden property. 1016s # * 1016s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1016s # * The properties are overridden in the order they are defined. 1016s # * 1016s # * Returns: The last property id. 1016s # */ 1016s # guint 1016s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1016s # { 1016s # return property_id_begin - 1; 1016s # } 1016s # 1016s # 1016s # inline static void 1016s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1016s # GClosure *closure, 1016s # GValue *return_value, 1016s # unsigned int n_param_values, 1016s # const GValue *param_values, 1016s # void *invocation_hint, 1016s # void *marshal_data) 1016s # { 1016s # g_cclosure_marshal_VOID__VOID (closure, 1016s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1016s # } 1016s # 1016s # 1016s # /** 1016s # * OrgProjectOtherSignalingIface: 1016s # * 1016s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherSignalingIfaceIface: 1016s # * @parent_iface: The parent interface. 1016s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1016s # * 1016s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1016s # */ 1016s # 1016s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1016s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1016s # { 1016s # /* GObject signals for received D-Bus signals: */ 1016s # /** 1016s # * OrgProjectOtherSignalingIface::simple-signal: 1016s # * @object: A #OrgProjectOtherSignalingIface. 1016s # * 1016s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1016s # * 1016s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1016s # */ 1016s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1016s # g_signal_new ("simple-signal", 1016s # G_TYPE_FROM_INTERFACE (iface), 1016s # G_SIGNAL_RUN_LAST, 1016s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1016s # NULL, 1016s # NULL, 1016s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1016s # G_TYPE_NONE, 1016s # 0); 1016s # 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_emit_simple_signal: 1016s # * @object: A #OrgProjectOtherSignalingIface. 1016s # * 1016s # * Emits the "SimpleSignal" D-Bus signal. 1016s # */ 1016s # void 1016s # org_project_other_signaling_iface_emit_simple_signal ( 1016s # OrgProjectOtherSignalingIface *object) 1016s # { 1016s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1016s # } 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectOtherSignalingIfaceProxy: 1016s # * 1016s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherSignalingIfaceProxyClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1016s # */ 1016s # 1016s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1016s # { 1016s # GData *qdata; 1016s # }; 1016s # 1016s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1016s # { 1016s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1016s # g_datalist_clear (&proxy->priv->qdata); 1016s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1016s # guint prop_id G_GNUC_UNUSED, 1016s # const GValue *value G_GNUC_UNUSED, 1016s # GParamSpec *pspec G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1016s # const gchar *sender_name G_GNUC_UNUSED, 1016s # const gchar *signal_name, 1016s # GVariant *parameters) 1016s # { 1016s # _ExtendedGDBusSignalInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # gsize n; 1016s # guint signal_id; 1016s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1016s # if (info == NULL) 1016s # return; 1016s # num_params = g_variant_n_children (parameters); 1016s # paramv = g_new0 (GValue, num_params + 1); 1016s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[0], proxy); 1016s # g_variant_iter_init (&iter, parameters); 1016s # n = 1; 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1016s # g_signal_emitv (paramv, signal_id, 0, NULL); 1016s # for (n = 0; n < num_params + 1; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1016s # GVariant *changed_properties, 1016s # const gchar *const *invalidated_properties) 1016s # { 1016s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1016s # guint n; 1016s # const gchar *key; 1016s # GVariantIter *iter; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # g_variant_get (changed_properties, "a{sv}", &iter); 1016s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1016s # g_datalist_remove_data (&proxy->priv->qdata, key); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # g_variant_iter_free (iter); 1016s # for (n = 0; invalidated_properties[n] != NULL; n++) 1016s # { 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1016s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1016s # if (info != NULL) 1016s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1016s # } 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1016s # #else 1016s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1016s # #endif 1016s # 1016s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusProxyClass *proxy_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1016s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1016s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1016s # 1016s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1016s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1016s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_proxy_new: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_other_signaling_iface_proxy_new ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_proxy_new_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherSignalingIface * 1016s # org_project_other_signaling_iface_proxy_new_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_proxy_new_sync: 1016s # * @connection: A #GDBusConnection. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherSignalingIface * 1016s # org_project_other_signaling_iface_proxy_new_sync ( 1016s # GDBusConnection *connection, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_proxy_new_for_bus: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1016s # * @user_data: User data to pass to @callback. 1016s # * 1016s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1016s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1016s # * 1016s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1016s # */ 1016s # void 1016s # org_project_other_signaling_iface_proxy_new_for_bus ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GAsyncReadyCallback callback, 1016s # gpointer user_data) 1016s # { 1016s # 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); 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1016s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherSignalingIface * 1016s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1016s # GAsyncResult *res, 1016s # GError **error) 1016s # { 1016s # GObject *ret; 1016s # GObject *source_object; 1016s # source_object = g_async_result_get_source_object (res); 1016s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1016s # g_object_unref (source_object); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1016s # * @bus_type: A #GBusType. 1016s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1016s # * @name: A bus name (well-known or unique). 1016s # * @object_path: An object path. 1016s # * @cancellable: (nullable): A #GCancellable or %NULL. 1016s # * @error: Return location for error or %NULL 1016s # * 1016s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1016s # * 1016s # * The calling thread is blocked until a reply is received. 1016s # * 1016s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1016s # */ 1016s # OrgProjectOtherSignalingIface * 1016s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1016s # GBusType bus_type, 1016s # GDBusProxyFlags flags, 1016s # const gchar *name, 1016s # const gchar *object_path, 1016s # GCancellable *cancellable, 1016s # GError **error) 1016s # { 1016s # GInitable *ret; 1016s # 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); 1016s # if (ret != NULL) 1016s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1016s # else 1016s # return NULL; 1016s # } 1016s # 1016s # 1016s # /* ------------------------------------------------------------------------ */ 1016s # 1016s # /** 1016s # * OrgProjectOtherSignalingIfaceSkeleton: 1016s # * 1016s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1016s # */ 1016s # 1016s # /** 1016s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1016s # * @parent_class: The parent class. 1016s # * 1016s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1016s # */ 1016s # 1016s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1016s # { 1016s # GValue *properties; 1016s # GList *changed_properties; 1016s # GSource *changed_properties_idle_source; 1016s # GMainContext *context; 1016s # GMutex lock; 1016s # }; 1016s # 1016s # static void 1016s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name, 1016s # const gchar *method_name, 1016s # GVariant *parameters, 1016s # GDBusMethodInvocation *invocation, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1016s # _ExtendedGDBusMethodInfo *info; 1016s # GVariantIter iter; 1016s # GVariant *child; 1016s # GValue *paramv; 1016s # gsize num_params; 1016s # guint num_extra; 1016s # gsize n; 1016s # guint signal_id; 1016s # GValue return_value = G_VALUE_INIT; 1016s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1016s # g_assert (info != NULL); 1016s # num_params = g_variant_n_children (parameters); 1016s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1016s # n = 0; 1016s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1016s # g_value_set_object (¶mv[n++], skeleton); 1016s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1016s # g_value_set_object (¶mv[n++], invocation); 1016s # if (info->pass_fdlist) 1016s # { 1016s # #ifdef G_OS_UNIX 1016s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1016s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1016s # #else 1016s # g_assert_not_reached (); 1016s # #endif 1016s # } 1016s # g_variant_iter_init (&iter, parameters); 1016s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1016s # { 1016s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1016s # if (arg_info->use_gvariant) 1016s # { 1016s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1016s # g_value_set_variant (¶mv[n], child); 1016s # n++; 1016s # } 1016s # else 1016s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1016s # g_variant_unref (child); 1016s # } 1016s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1016s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1016s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1016s # if (!g_value_get_boolean (&return_value)) 1016s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1016s # g_value_unset (&return_value); 1016s # for (n = 0; n < num_params + num_extra; n++) 1016s # g_value_unset (¶mv[n]); 1016s # g_free (paramv); 1016s # } 1016s # 1016s # static GVariant * 1016s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # GVariant *ret; 1016s # ret = NULL; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # g_value_init (&value, pspec->value_type); 1016s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1016s # g_value_unset (&value); 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static gboolean 1016s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1016s # GDBusConnection *connection G_GNUC_UNUSED, 1016s # const gchar *sender G_GNUC_UNUSED, 1016s # const gchar *object_path G_GNUC_UNUSED, 1016s # const gchar *interface_name G_GNUC_UNUSED, 1016s # const gchar *property_name, 1016s # GVariant *variant, 1016s # GError **error, 1016s # gpointer user_data) 1016s # { 1016s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1016s # GValue value = G_VALUE_INIT; 1016s # GParamSpec *pspec; 1016s # _ExtendedGDBusPropertyInfo *info; 1016s # gboolean ret; 1016s # ret = FALSE; 1016s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1016s # g_assert (info != NULL); 1016s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1016s # if (pspec == NULL) 1016s # { 1016s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1016s # } 1016s # else 1016s # { 1016s # if (info->use_gvariant) 1016s # g_value_set_variant (&value, variant); 1016s # else 1016s # g_dbus_gvariant_to_gvalue (variant, &value); 1016s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1016s # g_value_unset (&value); 1016s # ret = TRUE; 1016s # } 1016s # return ret; 1016s # } 1016s # 1016s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1016s # { 1016s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1016s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1016s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1016s # {NULL} 1016s # }; 1016s # 1016s # static GDBusInterfaceInfo * 1016s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return org_project_other_signaling_iface_interface_info (); 1016s # } 1016s # 1016s # static GDBusInterfaceVTable * 1016s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1016s # { 1016s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1016s # } 1016s # 1016s # static GVariant * 1016s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1016s # { 1016s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1016s # 1016s # GVariantBuilder builder; 1016s # guint n; 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1016s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #else 1016s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1016s # #endif 1016s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1016s # goto out; 1016s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1016s # { 1016s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1016s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1016s # { 1016s # GVariant *value; 1016s # 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); 1016s # if (value != NULL) 1016s # { 1016s # g_variant_take_ref (value); 1016s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1016s # g_variant_unref (value); 1016s # } 1016s # } 1016s # } 1016s # out: 1016s # return g_variant_builder_end (&builder); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1016s # { 1016s # } 1016s # 1016s # static void 1016s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1016s # OrgProjectOtherSignalingIface *object) 1016s # { 1016s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1016s # 1016s # GList *connections, *l; 1016s # GVariant *signal_variant; 1016s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1016s # 1016s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1016s # for (l = connections; l != NULL; l = l->next) 1016s # { 1016s # GDBusConnection *connection = l->data; 1016s # g_dbus_connection_emit_signal (connection, 1016s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1016s # signal_variant, NULL); 1016s # } 1016s # g_variant_unref (signal_variant); 1016s # g_list_free_full (connections, g_object_unref); 1016s # } 1016s # 1016s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #else 1016s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1016s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1016s # 1016s # #endif 1016s # static void 1016s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1016s # { 1016s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1016s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1016s # if (skeleton->priv->changed_properties_idle_source != NULL) 1016s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1016s # g_main_context_unref (skeleton->priv->context); 1016s # g_mutex_clear (&skeleton->priv->lock); 1016s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1016s # { 1016s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1016s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1016s # #else 1016s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1016s # #endif 1016s # 1016s # g_mutex_init (&skeleton->priv->lock); 1016s # skeleton->priv->context = g_main_context_ref_thread_default (); 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1016s # { 1016s # GObjectClass *gobject_class; 1016s # GDBusInterfaceSkeletonClass *skeleton_class; 1016s # 1016s # gobject_class = G_OBJECT_CLASS (klass); 1016s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1016s # 1016s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1016s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1016s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1016s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1016s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1016s # 1016s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1016s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1016s # #endif 1016s # } 1016s # 1016s # static void 1016s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1016s # { 1016s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1016s # } 1016s # 1016s # /** 1016s # * org_project_other_signaling_iface_skeleton_new: 1016s # * 1016s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1016s # * 1016s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1016s # */ 1016s # OrgProjectOtherSignalingIface * 1016s # org_project_other_signaling_iface_skeleton_new (void) 1016s # { 1016s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1016s # } 1016s # Error: 1017s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmplzhzs8t3 1017s # /tmp/tmplzhzs8t3/tmpmzefncz_.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpmzefncz_.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_b", 1017s # (gchar *) "b", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalB", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-b" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-b: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_b: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1017s # g_signal_new ("single-arg-signal-b", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_BOOLEAN); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_b: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_b: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalB" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_b ( 1017s # OrgProjectSignalingIface *object, 1017s # gboolean arg_arg_b) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1017s # OrgProjectSignalingIface *object, 1017s # gboolean arg_arg_b) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1017s # arg_arg_b)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpkyg2nrfl.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpkyg2nrfl.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_y", 1017s # (gchar *) "y", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalY", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-y" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__UCHAR (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-y: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_y: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1017s # g_signal_new ("single-arg-signal-y", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_UCHAR); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_y: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_y: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalY" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_y ( 1017s # OrgProjectSignalingIface *object, 1017s # guchar arg_arg_y) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1017s # OrgProjectSignalingIface *object, 1017s # guchar arg_arg_y) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1017s # arg_arg_y)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpv4s01pff.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpv4s01pff.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_n", 1017s # (gchar *) "n", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalN", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-n" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__INT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-n: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_n: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1017s # g_signal_new ("single-arg-signal-n", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_INT); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_n: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_n: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalN" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_n ( 1017s # OrgProjectSignalingIface *object, 1017s # gint16 arg_arg_n) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1017s # OrgProjectSignalingIface *object, 1017s # gint16 arg_arg_n) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1017s # arg_arg_n)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpn_7im44p.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpn_7im44p.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_q", 1017s # (gchar *) "q", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalQ", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-q" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__UINT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-q: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_q: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1017s # g_signal_new ("single-arg-signal-q", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_UINT); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_q: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_q: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalQ" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_q ( 1017s # OrgProjectSignalingIface *object, 1017s # guint16 arg_arg_q) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1017s # OrgProjectSignalingIface *object, 1017s # guint16 arg_arg_q) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1017s # arg_arg_q)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpgeeen8mv.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpgeeen8mv.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_i", 1017s # (gchar *) "i", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalI", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-i" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__INT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-i: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_i: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1017s # g_signal_new ("single-arg-signal-i", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_INT); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_i: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_i: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalI" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_i ( 1017s # OrgProjectSignalingIface *object, 1017s # gint arg_arg_i) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1017s # OrgProjectSignalingIface *object, 1017s # gint arg_arg_i) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1017s # arg_arg_i)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpqecrxnwm.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpqecrxnwm.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_u", 1017s # (gchar *) "u", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalU", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-u" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__UINT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-u: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_u: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1017s # g_signal_new ("single-arg-signal-u", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_UINT); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_u: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_u: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalU" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_u ( 1017s # OrgProjectSignalingIface *object, 1017s # guint arg_arg_u) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1017s # OrgProjectSignalingIface *object, 1017s # guint arg_arg_u) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1017s # arg_arg_u)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpdrljt8nx.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpdrljt8nx.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static void 1017s # _g_dbus_codegen_marshal_VOID__INT64 ( 1017s # GClosure *closure, 1017s # GValue *return_value G_GNUC_UNUSED, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint G_GNUC_UNUSED, 1017s # void *marshal_data) 1017s # { 1017s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1017s # (void *data1, 1017s # gint64 arg_arg_x, 1017s # void *data2); 1017s # _GDbusCodegenMarshalVoid_Int64Func callback; 1017s # GCClosure *cc = (GCClosure*) closure; 1017s # void *data1, *data2; 1017s # 1017s # g_return_if_fail (n_param_values == 2); 1017s # 1017s # if (G_CCLOSURE_SWAP_DATA (closure)) 1017s # { 1017s # data1 = closure->data; 1017s # data2 = g_value_peek_pointer (param_values + 0); 1017s # } 1017s # else 1017s # { 1017s # data1 = g_value_peek_pointer (param_values + 0); 1017s # data2 = closure->data; 1017s # } 1017s # 1017s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1017s # (marshal_data ? marshal_data : cc->callback); 1017s # 1017s # callback (data1, 1017s # g_marshal_value_peek_int64 (param_values + 1), 1017s # data2); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_x", 1017s # (gchar *) "x", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalX", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-x" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-x: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_x: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1017s # g_signal_new ("single-arg-signal-x", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_INT64); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_x: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_x: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalX" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_x ( 1017s # OrgProjectSignalingIface *object, 1017s # gint64 arg_arg_x) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1017s # OrgProjectSignalingIface *object, 1017s # gint64 arg_arg_x) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1017s # arg_arg_x)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmppm0clrrp.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmppm0clrrp.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static void 1017s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1017s # GClosure *closure, 1017s # GValue *return_value G_GNUC_UNUSED, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint G_GNUC_UNUSED, 1017s # void *marshal_data) 1017s # { 1017s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1017s # (void *data1, 1017s # guint64 arg_arg_t, 1017s # void *data2); 1017s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1017s # GCClosure *cc = (GCClosure*) closure; 1017s # void *data1, *data2; 1017s # 1017s # g_return_if_fail (n_param_values == 2); 1017s # 1017s # if (G_CCLOSURE_SWAP_DATA (closure)) 1017s # { 1017s # data1 = closure->data; 1017s # data2 = g_value_peek_pointer (param_values + 0); 1017s # } 1017s # else 1017s # { 1017s # data1 = g_value_peek_pointer (param_values + 0); 1017s # data2 = closure->data; 1017s # } 1017s # 1017s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1017s # (marshal_data ? marshal_data : cc->callback); 1017s # 1017s # callback (data1, 1017s # g_marshal_value_peek_uint64 (param_values + 1), 1017s # data2); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_t", 1017s # (gchar *) "t", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalT", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-t" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-t: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_t: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1017s # g_signal_new ("single-arg-signal-t", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_UINT64); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_t: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_t: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalT" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_t ( 1017s # OrgProjectSignalingIface *object, 1017s # guint64 arg_arg_t) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1017s # OrgProjectSignalingIface *object, 1017s # guint64 arg_arg_t) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1017s # arg_arg_t)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpw1rxd71r.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpw1rxd71r.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_d", 1017s # (gchar *) "d", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalD", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-d" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__DOUBLE (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-d: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_d: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1017s # g_signal_new ("single-arg-signal-d", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_DOUBLE); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_d: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_d: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalD" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_d ( 1017s # OrgProjectSignalingIface *object, 1017s # gdouble arg_arg_d) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1017s # OrgProjectSignalingIface *object, 1017s # gdouble arg_arg_d) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1017s # arg_arg_d)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpbv5zziot.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpbv5zziot.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_s", 1017s # (gchar *) "s", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalS", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-s" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__STRING (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-s: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_s: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1017s # g_signal_new ("single-arg-signal-s", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRING); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_s: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_s: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalS" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_s ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_s) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_s) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1017s # arg_arg_s)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpa4cd5xki.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpa4cd5xki.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_o", 1017s # (gchar *) "o", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalO", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-o" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__STRING (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-o: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_o: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1017s # g_signal_new ("single-arg-signal-o", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRING); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_o: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_o: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalO" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_o ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_o) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_o) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1017s # arg_arg_o)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpms1y9lfp.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpms1y9lfp.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_g", 1017s # (gchar *) "g", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalG", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-g" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__STRING (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-g: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_g: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1017s # g_signal_new ("single-arg-signal-g", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRING); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_g: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_g: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalG" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_g ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_g) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_g) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1017s # arg_arg_g)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmp_2_16nxm.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmp_2_16nxm.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_h", 1017s # (gchar *) "h", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalH", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-h" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VARIANT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-h: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_h: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1017s # g_signal_new ("single-arg-signal-h", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_VARIANT); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_h: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_h: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalH" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_h ( 1017s # OrgProjectSignalingIface *object, 1017s # GVariant *arg_arg_h) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1017s # OrgProjectSignalingIface *object, 1017s # GVariant *arg_arg_h) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1017s # arg_arg_h)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpkdphyp0y.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpkdphyp0y.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_ay", 1017s # (gchar *) "ay", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalAy", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-ay" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__STRING (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-ay: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_ay: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1017s # g_signal_new ("single-arg-signal-ay", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRING); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_ay: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalAy" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_ay) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *arg_arg_ay) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1017s # arg_arg_ay)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmp6s42yc6l.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmp6s42yc6l.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_as", 1017s # (gchar *) "as", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalAs", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-as" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__BOXED (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-as: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_as: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1017s # g_signal_new ("single-arg-signal-as", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRV); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_as: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_as: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalAs" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_as ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *const *arg_arg_as) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *const *arg_arg_as) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1017s # arg_arg_as)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmp_znzzd34.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmp_znzzd34.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_ao", 1017s # (gchar *) "ao", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalAo", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-ao" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__BOXED (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-ao: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_ao: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1017s # g_signal_new ("single-arg-signal-ao", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRV); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_ao: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalAo" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *const *arg_arg_ao) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *const *arg_arg_ao) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1017s # arg_arg_ao)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpq4akaqh6.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpq4akaqh6.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_aay", 1017s # (gchar *) "aay", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalAay", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-aay" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__BOXED (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-aay: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_aay: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1017s # g_signal_new ("single-arg-signal-aay", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_STRV); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_aay: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalAay" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *const *arg_arg_aay) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1017s # OrgProjectSignalingIface *object, 1017s # const gchar *const *arg_arg_aay) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1017s # arg_arg_aay)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s # 1017s # /tmp/tmplzhzs8t3/tmpp92dhyww.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplzhzs8t3/tmpp92dhyww.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "arg_asv", 1017s # (gchar *) "a{sv}", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SingleArgSignalAsv", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "single-arg-signal-asv" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VARIANT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::single-arg-signal-asv: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_asv: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1017s # g_signal_new ("single-arg-signal-asv", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1017s # G_TYPE_NONE, 1017s # 1, G_TYPE_VARIANT); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_arg_asv: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1017s # OrgProjectSignalingIface *object, 1017s # GVariant *arg_arg_asv) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1017s # OrgProjectSignalingIface *object, 1017s # GVariant *arg_arg_asv) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1017s # arg_arg_asv)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmptacuytam 1017s # /tmp/tmptacuytam/tmpg23dwm8l.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmptacuytam/tmpg23dwm8l.xml', '--output', '-', '--body'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifdef HAVE_CONFIG_H 1017s # # include "config.h" 1017s # #endif 1017s # 1017s # #include 1017s # #ifdef G_OS_UNIX 1017s # # include 1017s # #endif 1017s # 1017s # #ifdef G_ENABLE_DEBUG 1017s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1017s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1017s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1017s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1017s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1017s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1017s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1017s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1017s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1017s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1017s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1017s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1017s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1017s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1017s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1017s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1017s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1017s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1017s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1017s # #else /* !G_ENABLE_DEBUG */ 1017s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1017s # * Do not access GValues directly in your code. Instead, use the 1017s # * g_value_get_*() functions 1017s # */ 1017s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1017s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1017s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1017s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1017s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1017s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1017s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1017s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1017s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1017s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1017s # #endif /* !G_ENABLE_DEBUG */ 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusArgInfo parent_struct; 1017s # gboolean use_gvariant; 1017s # } _ExtendedGDBusArgInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusMethodInfo parent_struct; 1017s # const gchar *signal_name; 1017s # gboolean pass_fdlist; 1017s # } _ExtendedGDBusMethodInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusSignalInfo parent_struct; 1017s # const gchar *signal_name; 1017s # } _ExtendedGDBusSignalInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusPropertyInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # guint use_gvariant : 1; 1017s # guint emits_changed_signal : 1; 1017s # } _ExtendedGDBusPropertyInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # GDBusInterfaceInfo parent_struct; 1017s # const gchar *hyphen_name; 1017s # } _ExtendedGDBusInterfaceInfo; 1017s # 1017s # typedef struct 1017s # { 1017s # const _ExtendedGDBusPropertyInfo *info; 1017s # guint prop_id; 1017s # GValue orig_value; /* the value before the change */ 1017s # } ChangedProperty; 1017s # 1017s # static void 1017s # _changed_property_free (ChangedProperty *data) 1017s # { 1017s # g_value_unset (&data->orig_value); 1017s # g_free (data); 1017s # } 1017s # 1017s # static gboolean 1017s # _g_strv_equal0 (gchar **a, gchar **b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # guint n; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # if (g_strv_length (a) != g_strv_length (b)) 1017s # goto out; 1017s # for (n = 0; a[n] != NULL; n++) 1017s # if (g_strcmp0 (a[n], b[n]) != 0) 1017s # goto out; 1017s # ret = TRUE; 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _g_variant_equal0 (GVariant *a, GVariant *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # if (a == NULL && b == NULL) 1017s # { 1017s # ret = TRUE; 1017s # goto out; 1017s # } 1017s # if (a == NULL || b == NULL) 1017s # goto out; 1017s # ret = g_variant_equal (a, b); 1017s # out: 1017s # return ret; 1017s # } 1017s # 1017s # G_GNUC_UNUSED static gboolean 1017s # _g_value_equal (const GValue *a, const GValue *b) 1017s # { 1017s # gboolean ret = FALSE; 1017s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1017s # switch (G_VALUE_TYPE (a)) 1017s # { 1017s # case G_TYPE_BOOLEAN: 1017s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1017s # break; 1017s # case G_TYPE_UCHAR: 1017s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1017s # break; 1017s # case G_TYPE_INT: 1017s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1017s # break; 1017s # case G_TYPE_UINT: 1017s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1017s # break; 1017s # case G_TYPE_INT64: 1017s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1017s # break; 1017s # case G_TYPE_UINT64: 1017s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1017s # break; 1017s # case G_TYPE_DOUBLE: 1017s # { 1017s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1017s # gdouble da = g_value_get_double (a); 1017s # gdouble db = g_value_get_double (b); 1017s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1017s # } 1017s # break; 1017s # case G_TYPE_STRING: 1017s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1017s # break; 1017s # case G_TYPE_VARIANT: 1017s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1017s # break; 1017s # default: 1017s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1017s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1017s # else 1017s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1017s # break; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static void 1017s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1017s # GClosure *closure, 1017s # GValue *return_value G_GNUC_UNUSED, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint G_GNUC_UNUSED, 1017s # void *marshal_data) 1017s # { 1017s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1017s # (void *data1, 1017s # gboolean arg_an_b, 1017s # guchar arg_an_y, 1017s # gint16 arg_an_n, 1017s # guint16 arg_an_q, 1017s # gint arg_an_i, 1017s # guint arg_an_u, 1017s # gint64 arg_an_x, 1017s # guint64 arg_an_t, 1017s # gdouble arg_an_d, 1017s # const gchar *arg_an_s, 1017s # const gchar *arg_an_o, 1017s # const gchar *arg_an_g, 1017s # GVariant *arg_an_h, 1017s # const gchar *arg_an_ay, 1017s # const gchar *const *arg_an_as, 1017s # const gchar *const *arg_an_ao, 1017s # const gchar *const *arg_an_aay, 1017s # GVariant *arg_an_asv, 1017s # void *data2); 1017s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1017s # GCClosure *cc = (GCClosure*) closure; 1017s # void *data1, *data2; 1017s # 1017s # g_return_if_fail (n_param_values == 19); 1017s # 1017s # if (G_CCLOSURE_SWAP_DATA (closure)) 1017s # { 1017s # data1 = closure->data; 1017s # data2 = g_value_peek_pointer (param_values + 0); 1017s # } 1017s # else 1017s # { 1017s # data1 = g_value_peek_pointer (param_values + 0); 1017s # data2 = closure->data; 1017s # } 1017s # 1017s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1017s # (marshal_data ? marshal_data : cc->callback); 1017s # 1017s # callback (data1, 1017s # g_marshal_value_peek_boolean (param_values + 1), 1017s # g_marshal_value_peek_uchar (param_values + 2), 1017s # g_marshal_value_peek_int (param_values + 3), 1017s # g_marshal_value_peek_uint (param_values + 4), 1017s # g_marshal_value_peek_int (param_values + 5), 1017s # g_marshal_value_peek_uint (param_values + 6), 1017s # g_marshal_value_peek_int64 (param_values + 7), 1017s # g_marshal_value_peek_uint64 (param_values + 8), 1017s # g_marshal_value_peek_double (param_values + 9), 1017s # g_marshal_value_peek_string (param_values + 10), 1017s # g_marshal_value_peek_string (param_values + 11), 1017s # g_marshal_value_peek_string (param_values + 12), 1017s # g_marshal_value_peek_variant (param_values + 13), 1017s # g_marshal_value_peek_string (param_values + 14), 1017s # g_marshal_value_peek_boxed (param_values + 15), 1017s # g_marshal_value_peek_boxed (param_values + 16), 1017s # g_marshal_value_peek_boxed (param_values + 17), 1017s # g_marshal_value_peek_variant (param_values + 18), 1017s # data2); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ 1017s # * Code for interface org.project.SignalingIface 1017s # * ------------------------------------------------------------------------ 1017s # */ 1017s # 1017s # /** 1017s # * SECTION:OrgProjectSignalingIface 1017s # * @title: OrgProjectSignalingIface 1017s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1017s # * 1017s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1017s # */ 1017s # 1017s # enum 1017s # { 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1017s # }; 1017s # 1017s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1017s # 1017s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SimpleSignal", 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "simple-signal" 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_b", 1017s # (gchar *) "b", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_y", 1017s # (gchar *) "y", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_n", 1017s # (gchar *) "n", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_q", 1017s # (gchar *) "q", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_i", 1017s # (gchar *) "i", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_u", 1017s # (gchar *) "u", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_x", 1017s # (gchar *) "x", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_t", 1017s # (gchar *) "t", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_d", 1017s # (gchar *) "d", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_s", 1017s # (gchar *) "s", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_o", 1017s # (gchar *) "o", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_g", 1017s # (gchar *) "g", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_h", 1017s # (gchar *) "h", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_ay", 1017s # (gchar *) "ay", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_as", 1017s # (gchar *) "as", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_ao", 1017s # (gchar *) "ao", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_aay", 1017s # (gchar *) "aay", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "an_asv", 1017s # (gchar *) "a{sv}", 1017s # NULL 1017s # }, 1017s # FALSE 1017s # }; 1017s # 1017s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "SignalWithManyArgs", 1017s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1017s # NULL 1017s # }, 1017s # "signal-with-many-args" 1017s # }; 1017s # 1017s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1017s # { 1017s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1017s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1017s # NULL 1017s # }; 1017s # 1017s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1017s # { 1017s # { 1017s # -1, 1017s # (gchar *) "org.project.SignalingIface", 1017s # NULL, 1017s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1017s # NULL, 1017s # NULL 1017s # }, 1017s # "org-project-signaling-iface", 1017s # }; 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_interface_info: 1017s # * 1017s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1017s # * 1017s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1017s # */ 1017s # GDBusInterfaceInfo * 1017s # org_project_signaling_iface_interface_info (void) 1017s # { 1017s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_override_properties: 1017s # * @klass: The class structure for a #GObject derived class. 1017s # * @property_id_begin: The property id to assign to the first overridden property. 1017s # * 1017s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1017s # * The properties are overridden in the order they are defined. 1017s # * 1017s # * Returns: The last property id. 1017s # */ 1017s # guint 1017s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1017s # { 1017s # return property_id_begin - 1; 1017s # } 1017s # 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_simple_signal ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # g_cclosure_marshal_VOID__VOID (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # inline static void 1017s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1017s # GClosure *closure, 1017s # GValue *return_value, 1017s # unsigned int n_param_values, 1017s # const GValue *param_values, 1017s # void *invocation_hint, 1017s # void *marshal_data) 1017s # { 1017s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1017s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1017s # } 1017s # 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface: 1017s # * 1017s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceIface: 1017s # * @parent_iface: The parent interface. 1017s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1017s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1017s # * 1017s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1017s # */ 1017s # 1017s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1017s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1017s # 1017s # static void 1017s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # /* GObject signals for received D-Bus signals: */ 1017s # /** 1017s # * OrgProjectSignalingIface::simple-signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1017s # g_signal_new ("simple-signal", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_simple_signal, 1017s # G_TYPE_NONE, 1017s # 0); 1017s # 1017s # /** 1017s # * OrgProjectSignalingIface::signal-with-many-args: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_an_b: Argument. 1017s # * @arg_an_y: Argument. 1017s # * @arg_an_n: Argument. 1017s # * @arg_an_q: Argument. 1017s # * @arg_an_i: Argument. 1017s # * @arg_an_u: Argument. 1017s # * @arg_an_x: Argument. 1017s # * @arg_an_t: Argument. 1017s # * @arg_an_d: Argument. 1017s # * @arg_an_s: Argument. 1017s # * @arg_an_o: Argument. 1017s # * @arg_an_g: Argument. 1017s # * @arg_an_h: Argument. 1017s # * @arg_an_ay: Argument. 1017s # * @arg_an_as: Argument. 1017s # * @arg_an_ao: Argument. 1017s # * @arg_an_aay: Argument. 1017s # * @arg_an_asv: Argument. 1017s # * 1017s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1017s # * 1017s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1017s # */ 1017s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1017s # g_signal_new ("signal-with-many-args", 1017s # G_TYPE_FROM_INTERFACE (iface), 1017s # G_SIGNAL_RUN_LAST, 1017s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1017s # NULL, 1017s # NULL, 1017s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1017s # G_TYPE_NONE, 1017s # 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); 1017s # 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_simple_signal: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * 1017s # * Emits the "SimpleSignal" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_emit_signal_with_many_args: 1017s # * @object: A #OrgProjectSignalingIface. 1017s # * @arg_an_b: Argument to pass with the signal. 1017s # * @arg_an_y: Argument to pass with the signal. 1017s # * @arg_an_n: Argument to pass with the signal. 1017s # * @arg_an_q: Argument to pass with the signal. 1017s # * @arg_an_i: Argument to pass with the signal. 1017s # * @arg_an_u: Argument to pass with the signal. 1017s # * @arg_an_x: Argument to pass with the signal. 1017s # * @arg_an_t: Argument to pass with the signal. 1017s # * @arg_an_d: Argument to pass with the signal. 1017s # * @arg_an_s: Argument to pass with the signal. 1017s # * @arg_an_o: Argument to pass with the signal. 1017s # * @arg_an_g: Argument to pass with the signal. 1017s # * @arg_an_h: Argument to pass with the signal. 1017s # * @arg_an_ay: Argument to pass with the signal. 1017s # * @arg_an_as: Argument to pass with the signal. 1017s # * @arg_an_ao: Argument to pass with the signal. 1017s # * @arg_an_aay: Argument to pass with the signal. 1017s # * @arg_an_asv: Argument to pass with the signal. 1017s # * 1017s # * Emits the "SignalWithManyArgs" D-Bus signal. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_emit_signal_with_many_args ( 1017s # OrgProjectSignalingIface *object, 1017s # gboolean arg_an_b, 1017s # guchar arg_an_y, 1017s # gint16 arg_an_n, 1017s # guint16 arg_an_q, 1017s # gint arg_an_i, 1017s # guint arg_an_u, 1017s # gint64 arg_an_x, 1017s # guint64 arg_an_t, 1017s # gdouble arg_an_d, 1017s # const gchar *arg_an_s, 1017s # const gchar *arg_an_o, 1017s # const gchar *arg_an_g, 1017s # GVariant *arg_an_h, 1017s # const gchar *arg_an_ay, 1017s # const gchar *const *arg_an_as, 1017s # const gchar *const *arg_an_ao, 1017s # const gchar *const *arg_an_aay, 1017s # GVariant *arg_an_asv) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxy: 1017s # * 1017s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceProxyClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceProxy. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceProxyPrivate 1017s # { 1017s # GData *qdata; 1017s # }; 1017s # 1017s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_proxy_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1017s # g_datalist_clear (&proxy->priv->qdata); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1017s # guint prop_id G_GNUC_UNUSED, 1017s # const GValue *value G_GNUC_UNUSED, 1017s # GParamSpec *pspec G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1017s # const gchar *sender_name G_GNUC_UNUSED, 1017s # const gchar *signal_name, 1017s # GVariant *parameters) 1017s # { 1017s # _ExtendedGDBusSignalInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # gsize n; 1017s # guint signal_id; 1017s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1017s # if (info == NULL) 1017s # return; 1017s # num_params = g_variant_n_children (parameters); 1017s # paramv = g_new0 (GValue, num_params + 1); 1017s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[0], proxy); 1017s # g_variant_iter_init (&iter, parameters); 1017s # n = 1; 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_signal_emitv (paramv, signal_id, 0, NULL); 1017s # for (n = 0; n < num_params + 1; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1017s # GVariant *changed_properties, 1017s # const gchar *const *invalidated_properties) 1017s # { 1017s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1017s # guint n; 1017s # const gchar *key; 1017s # GVariantIter *iter; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # g_variant_get (changed_properties, "a{sv}", &iter); 1017s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1017s # g_datalist_remove_data (&proxy->priv->qdata, key); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # g_variant_iter_free (iter); 1017s # for (n = 0; invalidated_properties[n] != NULL; n++) 1017s # { 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1017s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1017s # if (info != NULL) 1017s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1017s # } 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1017s # #else 1017s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1017s # #endif 1017s # 1017s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusProxyClass *proxy_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1017s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1017s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1017s # 1017s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1017s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1017s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_sync: 1017s # * @connection: A #GDBusConnection. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_sync ( 1017s # GDBusConnection *connection, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1017s # * @user_data: User data to pass to @callback. 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1017s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1017s # */ 1017s # void 1017s # org_project_signaling_iface_proxy_new_for_bus ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GAsyncReadyCallback callback, 1017s # gpointer user_data) 1017s # { 1017s # 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); 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1017s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1017s # GAsyncResult *res, 1017s # GError **error) 1017s # { 1017s # GObject *ret; 1017s # GObject *source_object; 1017s # source_object = g_async_result_get_source_object (res); 1017s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1017s # g_object_unref (source_object); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1017s # * @bus_type: A #GBusType. 1017s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1017s # * @name: A bus name (well-known or unique). 1017s # * @object_path: An object path. 1017s # * @cancellable: (nullable): A #GCancellable or %NULL. 1017s # * @error: Return location for error or %NULL 1017s # * 1017s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1017s # * 1017s # * The calling thread is blocked until a reply is received. 1017s # * 1017s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1017s # GBusType bus_type, 1017s # GDBusProxyFlags flags, 1017s # const gchar *name, 1017s # const gchar *object_path, 1017s # GCancellable *cancellable, 1017s # GError **error) 1017s # { 1017s # GInitable *ret; 1017s # 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); 1017s # if (ret != NULL) 1017s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1017s # else 1017s # return NULL; 1017s # } 1017s # 1017s # 1017s # /* ------------------------------------------------------------------------ */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeleton: 1017s # * 1017s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1017s # */ 1017s # 1017s # /** 1017s # * OrgProjectSignalingIfaceSkeletonClass: 1017s # * @parent_class: The parent class. 1017s # * 1017s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1017s # */ 1017s # 1017s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1017s # { 1017s # GValue *properties; 1017s # GList *changed_properties; 1017s # GSource *changed_properties_idle_source; 1017s # GMainContext *context; 1017s # GMutex lock; 1017s # }; 1017s # 1017s # static void 1017s # _org_project_signaling_iface_skeleton_handle_method_call ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name, 1017s # const gchar *method_name, 1017s # GVariant *parameters, 1017s # GDBusMethodInvocation *invocation, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # _ExtendedGDBusMethodInfo *info; 1017s # GVariantIter iter; 1017s # GVariant *child; 1017s # GValue *paramv; 1017s # gsize num_params; 1017s # guint num_extra; 1017s # gsize n; 1017s # guint signal_id; 1017s # GValue return_value = G_VALUE_INIT; 1017s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1017s # g_assert (info != NULL); 1017s # num_params = g_variant_n_children (parameters); 1017s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1017s # n = 0; 1017s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_set_object (¶mv[n++], skeleton); 1017s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1017s # g_value_set_object (¶mv[n++], invocation); 1017s # if (info->pass_fdlist) 1017s # { 1017s # #ifdef G_OS_UNIX 1017s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1017s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1017s # #else 1017s # g_assert_not_reached (); 1017s # #endif 1017s # } 1017s # g_variant_iter_init (&iter, parameters); 1017s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1017s # { 1017s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1017s # if (arg_info->use_gvariant) 1017s # { 1017s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1017s # g_value_set_variant (¶mv[n], child); 1017s # n++; 1017s # } 1017s # else 1017s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1017s # g_variant_unref (child); 1017s # } 1017s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1017s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1017s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1017s # if (!g_value_get_boolean (&return_value)) 1017s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1017s # g_value_unset (&return_value); 1017s # for (n = 0; n < num_params + num_extra; n++) 1017s # g_value_unset (¶mv[n]); 1017s # g_free (paramv); 1017s # } 1017s # 1017s # static GVariant * 1017s # _org_project_signaling_iface_skeleton_handle_get_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # GVariant *ret; 1017s # ret = NULL; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # g_value_init (&value, pspec->value_type); 1017s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1017s # g_value_unset (&value); 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static gboolean 1017s # _org_project_signaling_iface_skeleton_handle_set_property ( 1017s # GDBusConnection *connection G_GNUC_UNUSED, 1017s # const gchar *sender G_GNUC_UNUSED, 1017s # const gchar *object_path G_GNUC_UNUSED, 1017s # const gchar *interface_name G_GNUC_UNUSED, 1017s # const gchar *property_name, 1017s # GVariant *variant, 1017s # GError **error, 1017s # gpointer user_data) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1017s # GValue value = G_VALUE_INIT; 1017s # GParamSpec *pspec; 1017s # _ExtendedGDBusPropertyInfo *info; 1017s # gboolean ret; 1017s # ret = FALSE; 1017s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1017s # g_assert (info != NULL); 1017s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1017s # if (pspec == NULL) 1017s # { 1017s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1017s # } 1017s # else 1017s # { 1017s # if (info->use_gvariant) 1017s # g_value_set_variant (&value, variant); 1017s # else 1017s # g_dbus_gvariant_to_gvalue (variant, &value); 1017s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1017s # g_value_unset (&value); 1017s # ret = TRUE; 1017s # } 1017s # return ret; 1017s # } 1017s # 1017s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1017s # { 1017s # _org_project_signaling_iface_skeleton_handle_method_call, 1017s # _org_project_signaling_iface_skeleton_handle_get_property, 1017s # _org_project_signaling_iface_skeleton_handle_set_property, 1017s # {NULL} 1017s # }; 1017s # 1017s # static GDBusInterfaceInfo * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return org_project_signaling_iface_interface_info (); 1017s # } 1017s # 1017s # static GDBusInterfaceVTable * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1017s # { 1017s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1017s # } 1017s # 1017s # static GVariant * 1017s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1017s # 1017s # GVariantBuilder builder; 1017s # guint n; 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1017s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #else 1017s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1017s # #endif 1017s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1017s # goto out; 1017s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1017s # { 1017s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1017s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1017s # { 1017s # GVariant *value; 1017s # 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); 1017s # if (value != NULL) 1017s # { 1017s # g_variant_take_ref (value); 1017s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1017s # g_variant_unref (value); 1017s # } 1017s # } 1017s # } 1017s # out: 1017s # return g_variant_builder_end (&builder); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1017s # { 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_simple_signal ( 1017s # OrgProjectSignalingIface *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void 1017s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1017s # OrgProjectSignalingIface *object, 1017s # gboolean arg_an_b, 1017s # guchar arg_an_y, 1017s # gint16 arg_an_n, 1017s # guint16 arg_an_q, 1017s # gint arg_an_i, 1017s # guint arg_an_u, 1017s # gint64 arg_an_x, 1017s # guint64 arg_an_t, 1017s # gdouble arg_an_d, 1017s # const gchar *arg_an_s, 1017s # const gchar *arg_an_o, 1017s # const gchar *arg_an_g, 1017s # GVariant *arg_an_h, 1017s # const gchar *arg_an_ay, 1017s # const gchar *const *arg_an_as, 1017s # const gchar *const *arg_an_ao, 1017s # const gchar *const *arg_an_aay, 1017s # GVariant *arg_an_asv) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # 1017s # GList *connections, *l; 1017s # GVariant *signal_variant; 1017s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1017s # 1017s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1017s # arg_an_b, 1017s # arg_an_y, 1017s # arg_an_n, 1017s # arg_an_q, 1017s # arg_an_i, 1017s # arg_an_u, 1017s # arg_an_x, 1017s # arg_an_t, 1017s # arg_an_d, 1017s # arg_an_s, 1017s # arg_an_o, 1017s # arg_an_g, 1017s # arg_an_h, 1017s # arg_an_ay, 1017s # arg_an_as, 1017s # arg_an_ao, 1017s # arg_an_aay, 1017s # arg_an_asv)); 1017s # for (l = connections; l != NULL; l = l->next) 1017s # { 1017s # GDBusConnection *connection = l->data; 1017s # g_dbus_connection_emit_signal (connection, 1017s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1017s # signal_variant, NULL); 1017s # } 1017s # g_variant_unref (signal_variant); 1017s # g_list_free_full (connections, g_object_unref); 1017s # } 1017s # 1017s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #else 1017s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1017s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1017s # 1017s # #endif 1017s # static void 1017s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1017s # { 1017s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1017s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1017s # if (skeleton->priv->changed_properties_idle_source != NULL) 1017s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1017s # g_main_context_unref (skeleton->priv->context); 1017s # g_mutex_clear (&skeleton->priv->lock); 1017s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1017s # { 1017s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1017s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1017s # #else 1017s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1017s # #endif 1017s # 1017s # g_mutex_init (&skeleton->priv->lock); 1017s # skeleton->priv->context = g_main_context_ref_thread_default (); 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1017s # { 1017s # GObjectClass *gobject_class; 1017s # GDBusInterfaceSkeletonClass *skeleton_class; 1017s # 1017s # gobject_class = G_OBJECT_CLASS (klass); 1017s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1017s # 1017s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1017s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1017s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1017s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1017s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1017s # 1017s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1017s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1017s # #endif 1017s # } 1017s # 1017s # static void 1017s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1017s # { 1017s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1017s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1017s # } 1017s # 1017s # /** 1017s # * org_project_signaling_iface_skeleton_new: 1017s # * 1017s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1017s # * 1017s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1017s # */ 1017s # OrgProjectSignalingIface * 1017s # org_project_signaling_iface_skeleton_new (void) 1017s # { 1017s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1017s # } 1017s # Error: 1017s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpljdpjq1h 1017s # /tmp/tmpljdpjq1h/tmpmab4a90d.xml: 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpljdpjq1h/tmpmab4a90d.xml', '--generate-docbook', 'test'] 1017s # Return code: 0 1017s # Output: 1017s # 1017s # Error: 1017s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpp60hkrn5 1017s # /tmp/tmpp60hkrn5/tmpqyxe5vvg.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpp60hkrn5/tmpqyxe5vvg.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1017s # Return code: 1 1017s # Output: 1017s # 1017s # Error: 1017s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1017s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpqz1vdup7 1017s # /tmp/tmpqz1vdup7/tmp6v4s70yy.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpqz1vdup7/tmp6v4s70yy.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifndef __STDOUT__ 1017s # #define __STDOUT__ 1017s # 1017s # #include 1017s # 1017s # G_BEGIN_DECLS 1017s # 1017s # 1017s # G_END_DECLS 1017s # 1017s # #endif /* __STDOUT__ */ 1017s # Error: 1017s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpcdiim9ff 1017s # /tmp/tmpcdiim9ff/tmpc_p15pla.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpcdiim9ff/tmpc_p15pla.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1017s # Return code: 1 1017s # Output: 1017s # 1017s # Error: 1017s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1017s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpehmv7yus 1017s # /tmp/tmpehmv7yus/tmpj1ivtopp.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpehmv7yus/tmpj1ivtopp.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifndef __STDOUT__ 1017s # #define __STDOUT__ 1017s # 1017s # #include 1017s # 1017s # G_BEGIN_DECLS 1017s # 1017s # 1017s # G_END_DECLS 1017s # 1017s # #endif /* __STDOUT__ */ 1017s # Error: 1017s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpg8nt82g0 1017s # /tmp/tmpg8nt82g0/tmpwv4ibwad.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpg8nt82g0/tmpwv4ibwad.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifndef __STDOUT__ 1017s # #define __STDOUT__ 1017s # 1017s # #include 1017s # 1017s # G_BEGIN_DECLS 1017s # 1017s # 1017s # G_END_DECLS 1017s # 1017s # #endif /* __STDOUT__ */ 1017s # Error: 1017s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpyqqh2jwp 1017s # /tmp/tmpyqqh2jwp/tmpn88vvgb0.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyqqh2jwp/tmpn88vvgb0.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1017s # Return code: 1 1017s # Output: 1017s # 1017s # Error: 1017s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1017s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1017s # gdbus-codegen: /usr/bin/gdbus-codegen 1017s # tmpdir: /tmp/tmpiizp8zt3 1017s # /tmp/tmpiizp8zt3/tmpuxrd_wxz.xml: 1017s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpiizp8zt3/tmpuxrd_wxz.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1017s # Return code: 0 1017s # Output: 1017s # /* 1017s # * This file is generated by gdbus-codegen, do not modify it. 1017s # * 1017s # * The license of this code is the same as for the D-Bus interface description 1017s # * it was derived from. Note that it links to GLib, so must comply with the 1017s # * LGPL linking clauses. 1017s # */ 1017s # 1017s # #ifndef __STDOUT__ 1017s # #define __STDOUT__ 1017s # 1017s # #include 1017s # 1017s # G_BEGIN_DECLS 1017s # 1017s # 1017s # G_END_DECLS 1017s # 1017s # #endif /* __STDOUT__ */ 1017s # Error: 1018s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1018s # gdbus-codegen: /usr/bin/gdbus-codegen 1018s # tmpdir: /tmp/tmp5q79e31u 1018s # /tmp/tmp5q79e31u/tmpjryditu5.xml: 1018s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp5q79e31u/tmpjryditu5.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1018s # Return code: 1 1018s # Output: 1018s # 1018s # Error: 1018s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1018s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1018s # gdbus-codegen: /usr/bin/gdbus-codegen 1018s # tmpdir: /tmp/tmp4sxib4cr 1018s # /tmp/tmp4sxib4cr/tmpje1udfxd.xml: 1018s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp4sxib4cr/tmpje1udfxd.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1018s # Return code: 0 1018s # Output: 1018s # /* 1018s # * This file is generated by gdbus-codegen, do not modify it. 1018s # * 1018s # * The license of this code is the same as for the D-Bus interface description 1018s # * it was derived from. Note that it links to GLib, so must comply with the 1018s # * LGPL linking clauses. 1018s # */ 1018s # 1018s # #ifndef __STDOUT__ 1018s # #define __STDOUT__ 1018s # 1018s # #include 1018s # 1018s # G_BEGIN_DECLS 1018s # 1018s # 1018s # G_END_DECLS 1018s # 1018s # #endif /* __STDOUT__ */ 1018s # Error: 1018s ok 35 __main__.TestCodegen.test_help 1018s # gdbus-codegen: /usr/bin/gdbus-codegen 1018s # tmpdir: /tmp/tmp7g_xggpk 1018s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1018s # Return code: 0 1018s # Output: 1018s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1018s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1018s # [--c-generate-autocleanup {none,objects,all}] 1018s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1018s # [--generate-rst OUTFILES] [--pragma-once] 1018s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1018s # [--glib-min-required VERSION] 1018s # [--glib-max-allowed VERSION] 1018s # [--symbol-decorator SYMBOL_DECORATOR] 1018s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1018s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1018s # [--generate-c-code OUTFILES | --header | --body | 1018s # --interface-info-header | --interface-info-body] 1018s # [--output FILE | --output-directory OUTDIR] 1018s # FILE [FILE ...] 1018s # 1018s # D-Bus code and documentation generator 1018s # 1018s # positional arguments: 1018s # FILE D-Bus introspection XML file 1018s # 1018s # options: 1018s # -h, --help show this help message and exit 1018s # --interface-prefix PREFIX 1018s # String to strip from D-Bus interface names for code 1018s # and docs 1018s # --c-namespace NAMESPACE 1018s # The namespace to use for generated C code 1018s # --c-generate-object-manager 1018s # Generate a GDBusObjectManagerClient subclass when 1018s # generating C code 1018s # --c-generate-autocleanup {none,objects,all} 1018s # Generate autocleanup support 1018s # --generate-docbook OUTFILES 1018s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1018s # --generate-md OUTFILES 1018s # Generate Markdown in OUTFILES-org.Project.IFace.md 1018s # --generate-rst OUTFILES 1018s # Generate reStructuredText in OUTFILES- 1018s # org.Project.IFace.rst 1018s # --pragma-once Use "pragma once" as the inclusion guard 1018s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1018s # Add annotation (may be used several times) 1018s # --glib-min-required VERSION 1018s # Minimum version of GLib to be supported by the 1018s # outputted code (default: 2.30) 1018s # --glib-max-allowed VERSION 1018s # Maximum version of GLib to be used by the outputted 1018s # code (default: current GLib version) 1018s # --symbol-decorator SYMBOL_DECORATOR 1018s # Macro used to decorate a symbol in the outputted 1018s # header, possibly to export symbols 1018s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1018s # Additional header required for decorator specified by 1018s # --symbol-decorator 1018s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1018s # Additional define required for decorator specified by 1018s # --symbol-decorator 1018s # --generate-c-code OUTFILES 1018s # Generate C code in OUTFILES.[ch] 1018s # --header Generate C headers 1018s # --body Generate C code 1018s # --interface-info-header 1018s # Generate GDBusInterfaceInfo C header 1018s # --interface-info-body 1018s # Generate GDBusInterfaceInfo C code 1018s # --output FILE Write output into the specified file 1018s # --output-directory OUTDIR 1018s # Location to output generated files 1018s # Error: 1018s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1018s # gdbus-codegen: /usr/bin/gdbus-codegen 1018s # tmpdir: /tmp/tmpn4mzmh8e 1018s # /tmp/tmpn4mzmh8e/tmpfdtxuga5.xml: 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn4mzmh8e/tmpfdtxuga5.xml', '--generate-rst', 'test'] 1018s # Return code: 0 1018s # Output: 1018s # 1018s # Error: 1018s # 1018s # /tmp/tmpn4mzmh8e/tmpo6h_7ddp.xml: 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn4mzmh8e/tmpo6h_7ddp.xml', '--generate-md', 'test'] 1018s # Return code: 0 1018s # Output: 1018s # 1018s # Error: 1018s # 1018s # /tmp/tmpn4mzmh8e/tmp1my1avzs.xml: 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # 1018s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn4mzmh8e/tmp1my1avzs.xml', '--generate-docbook', 'test'] 1018s # Return code: 0 1018s # Output: 1018s # 1018s # Error: 1018s ok 37 __main__.TestCodegen.test_no_args 1018s # gdbus-codegen: /usr/bin/gdbus-codegen 1018s # tmpdir: /tmp/tmpnamr76dx 1018s # Running: ['/usr/bin/gdbus-codegen'] 1018s # Return code: 2 1018s # Output: 1018s # 1018s # Error: 1018s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1018s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1018s # [--c-generate-autocleanup {none,objects,all}] 1018s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1018s # [--generate-rst OUTFILES] [--pragma-once] 1018s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1018s # [--glib-min-required VERSION] 1018s # [--glib-max-allowed VERSION] 1018s # [--symbol-decorator SYMBOL_DECORATOR] 1018s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1018s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1018s # [--generate-c-code OUTFILES | --header | --body | 1018s # --interface-info-header | --interface-info-body] 1018s # [--output FILE | --output-directory OUTDIR] 1018s # FILE [FILE ...] 1018s # gdbus-codegen: error: the following arguments are required: FILE 1020s ok 38 __main__.TestCodegen.test_reproducible 1020s # Executing: glib/codegen.py.test 1020s ok - glib/codegen.py.test 1020s # Running test: glib/network-monitor.test 1020s ok - glib/network-monitor.test 1020s # Running test: glib/data-output-stream.test 1020s ok - glib/data-output-stream.test 1020s # Running test: glib/mimeapps.test 1020s ok - glib/mimeapps.test 1020s # Running test: glib/slist.test 1020s ok - glib/slist.test 1020s # Running test: glib/properties-refcount4.test 1020s ok - glib/properties-refcount4.test 1020s # Running test: glib/fileutils.test 1020s ok - glib/fileutils.test 1020s # Running test: glib/dynamictype.test 1020s ok - glib/dynamictype.test 1020s # Running test: glib/gdbus-peer-object-manager.test 1020s ok - glib/gdbus-peer-object-manager.test 1020s # Running test: glib/simple-proxy.test 1020s ok - glib/simple-proxy.test 1020s # Running test: glib/slice.test 1020s ok - glib/slice.test 1020s # Running test: glib/asyncqueue.test 1020s ok - glib/asyncqueue.test 1020s # Running test: glib/task.test 1020s ok - glib/task.test 1020s # Running test: glib/thread-deprecated.test 1020s # gdbus-codegen: /usr/bin/gdbus-codegen 1020s # tmpdir: /tmp/tmpooctb1pv 1020s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpooctb1pv/tmpb8fpvmwy1.xml', '/tmp/tmpooctb1pv/tmpvsyj3em42.xml', '--output', '-', '--header'] 1020s # Return code: 0 1020s # Output: 1020s # /* 1020s # * This file is generated by gdbus-codegen, do not modify it. 1020s # * 1020s # * The license of this code is the same as for the D-Bus interface description 1020s # * it was derived from. Note that it links to GLib, so must comply with the 1020s # * LGPL linking clauses. 1020s # */ 1020s # 1020s # #ifndef __STDOUT__ 1020s # #define __STDOUT__ 1020s # 1020s # #include 1020s # 1020s # G_BEGIN_DECLS 1020s # 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # /* Declarations for com.acme.Coyote */ 1020s # 1020s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1020s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1020s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1020s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1020s # 1020s # struct _ComAcmeCoyote; 1020s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1020s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1020s # 1020s # struct _ComAcmeCoyoteIface 1020s # { 1020s # GTypeInterface parent_iface; 1020s # 1020s # 1020s # 1020s # gboolean (*handle_attack) ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # gboolean (*handle_run) ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # gboolean (*handle_sleep) ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1020s # 1020s # void (*surprised) ( 1020s # ComAcmeCoyote *object); 1020s # 1020s # }; 1020s # 1020s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1020s # 1020s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1020s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1020s # 1020s # 1020s # /* D-Bus method call completion functions: */ 1020s # void com_acme_coyote_complete_run ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # void com_acme_coyote_complete_sleep ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # void com_acme_coyote_complete_attack ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # 1020s # 1020s # /* D-Bus signal emissions functions: */ 1020s # void com_acme_coyote_emit_surprised ( 1020s # ComAcmeCoyote *object); 1020s # 1020s # 1020s # 1020s # /* D-Bus method calls: */ 1020s # void com_acme_coyote_call_run ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean com_acme_coyote_call_run_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean com_acme_coyote_call_run_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void com_acme_coyote_call_sleep ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean com_acme_coyote_call_sleep_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean com_acme_coyote_call_sleep_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void com_acme_coyote_call_attack ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean com_acme_coyote_call_attack_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean com_acme_coyote_call_attack_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # 1020s # /* D-Bus property accessors: */ 1020s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1020s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1020s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1020s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1020s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1020s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1020s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1020s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1020s # 1020s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1020s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1020s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1020s # 1020s # struct _ComAcmeCoyoteProxy 1020s # { 1020s # /*< private >*/ 1020s # GDBusProxy parent_instance; 1020s # ComAcmeCoyoteProxyPrivate *priv; 1020s # }; 1020s # 1020s # struct _ComAcmeCoyoteProxyClass 1020s # { 1020s # GDBusProxyClass parent_class; 1020s # }; 1020s # 1020s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1020s # #endif 1020s # 1020s # void com_acme_coyote_proxy_new ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void com_acme_coyote_proxy_new_for_bus ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1020s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1020s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1020s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1020s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1020s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1020s # 1020s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1020s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1020s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1020s # 1020s # struct _ComAcmeCoyoteSkeleton 1020s # { 1020s # /*< private >*/ 1020s # GDBusInterfaceSkeleton parent_instance; 1020s # ComAcmeCoyoteSkeletonPrivate *priv; 1020s # }; 1020s # 1020s # struct _ComAcmeCoyoteSkeletonClass 1020s # { 1020s # GDBusInterfaceSkeletonClass parent_class; 1020s # }; 1020s # 1020s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1020s # #endif 1020s # 1020s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1020s # 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # /* Declarations for org.project.Bar.Frobnicator */ 1020s # 1020s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1020s # 1020s # struct _OrgProjectBarFrobnicator; 1020s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1020s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1020s # 1020s # struct _OrgProjectBarFrobnicatorIface 1020s # { 1020s # GTypeInterface parent_iface; 1020s # 1020s # gboolean (*handle_random_method) ( 1020s # OrgProjectBarFrobnicator *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # }; 1020s # 1020s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1020s # 1020s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1020s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1020s # 1020s # 1020s # /* D-Bus method call completion functions: */ 1020s # void org_project_bar_frobnicator_complete_random_method ( 1020s # OrgProjectBarFrobnicator *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # 1020s # 1020s # /* D-Bus method calls: */ 1020s # void org_project_bar_frobnicator_call_random_method ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1020s # 1020s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1020s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1020s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1020s # 1020s # struct _OrgProjectBarFrobnicatorProxy 1020s # { 1020s # /*< private >*/ 1020s # GDBusProxy parent_instance; 1020s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1020s # }; 1020s # 1020s # struct _OrgProjectBarFrobnicatorProxyClass 1020s # { 1020s # GDBusProxyClass parent_class; 1020s # }; 1020s # 1020s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1020s # #endif 1020s # 1020s # void org_project_bar_frobnicator_proxy_new ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1020s # 1020s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1020s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1020s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1020s # 1020s # struct _OrgProjectBarFrobnicatorSkeleton 1020s # { 1020s # /*< private >*/ 1020s # GDBusInterfaceSkeleton parent_instance; 1020s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1020s # }; 1020s # 1020s # struct _OrgProjectBarFrobnicatorSkeletonClass 1020s # { 1020s # GDBusInterfaceSkeletonClass parent_class; 1020s # }; 1020s # 1020s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1020s # #endif 1020s # 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1020s # 1020s # 1020s # G_END_DECLS 1020s # 1020s # #endif /* __STDOUT__ */ 1020s # Error: 1020s # 1020s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpooctb1pv/tmpvsyj3em42.xml', '/tmp/tmpooctb1pv/tmpb8fpvmwy1.xml', '--output', '-', '--header'] 1020s # Return code: 0 1020s # Output: 1020s # /* 1020s # * This file is generated by gdbus-codegen, do not modify it. 1020s # * 1020s # * The license of this code is the same as for the D-Bus interface description 1020s # * it was derived from. Note that it links to GLib, so must comply with the 1020s # * LGPL linking clauses. 1020s # */ 1020s # 1020s # #ifndef __STDOUT__ 1020s # #define __STDOUT__ 1020s # 1020s # #include 1020s # 1020s # G_BEGIN_DECLS 1020s # 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # /* Declarations for com.acme.Coyote */ 1020s # 1020s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1020s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1020s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1020s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1020s # 1020s # struct _ComAcmeCoyote; 1020s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1020s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1020s # 1020s # struct _ComAcmeCoyoteIface 1020s # { 1020s # GTypeInterface parent_iface; 1020s # 1020s # 1020s # 1020s # gboolean (*handle_attack) ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # gboolean (*handle_run) ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # gboolean (*handle_sleep) ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1020s # 1020s # void (*surprised) ( 1020s # ComAcmeCoyote *object); 1020s # 1020s # }; 1020s # 1020s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1020s # 1020s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1020s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1020s # 1020s # 1020s # /* D-Bus method call completion functions: */ 1020s # void com_acme_coyote_complete_run ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # void com_acme_coyote_complete_sleep ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # void com_acme_coyote_complete_attack ( 1020s # ComAcmeCoyote *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # 1020s # 1020s # /* D-Bus signal emissions functions: */ 1020s # void com_acme_coyote_emit_surprised ( 1020s # ComAcmeCoyote *object); 1020s # 1020s # 1020s # 1020s # /* D-Bus method calls: */ 1020s # void com_acme_coyote_call_run ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean com_acme_coyote_call_run_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean com_acme_coyote_call_run_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void com_acme_coyote_call_sleep ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean com_acme_coyote_call_sleep_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean com_acme_coyote_call_sleep_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void com_acme_coyote_call_attack ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean com_acme_coyote_call_attack_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean com_acme_coyote_call_attack_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # 1020s # /* D-Bus property accessors: */ 1020s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1020s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1020s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1020s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1020s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1020s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1020s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1020s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1020s # 1020s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1020s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1020s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1020s # 1020s # struct _ComAcmeCoyoteProxy 1020s # { 1020s # /*< private >*/ 1020s # GDBusProxy parent_instance; 1020s # ComAcmeCoyoteProxyPrivate *priv; 1020s # }; 1020s # 1020s # struct _ComAcmeCoyoteProxyClass 1020s # { 1020s # GDBusProxyClass parent_class; 1020s # }; 1020s # 1020s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1020s # #endif 1020s # 1020s # void com_acme_coyote_proxy_new ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void com_acme_coyote_proxy_new_for_bus ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1020s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1020s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1020s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1020s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1020s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1020s # 1020s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1020s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1020s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1020s # 1020s # struct _ComAcmeCoyoteSkeleton 1020s # { 1020s # /*< private >*/ 1020s # GDBusInterfaceSkeleton parent_instance; 1020s # ComAcmeCoyoteSkeletonPrivate *priv; 1020s # }; 1020s # 1020s # struct _ComAcmeCoyoteSkeletonClass 1020s # { 1020s # GDBusInterfaceSkeletonClass parent_class; 1020s # }; 1020s # 1020s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1020s # #endif 1020s # 1020s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1020s # 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # /* Declarations for org.project.Bar.Frobnicator */ 1020s # 1020s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1020s # 1020s # struct _OrgProjectBarFrobnicator; 1020s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1020s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1020s # 1020s # struct _OrgProjectBarFrobnicatorIface 1020s # { 1020s # GTypeInterface parent_iface; 1020s # 1020s # gboolean (*handle_random_method) ( 1020s # OrgProjectBarFrobnicator *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # }; 1020s # 1020s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1020s # 1020s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1020s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1020s # 1020s # 1020s # /* D-Bus method call completion functions: */ 1020s # void org_project_bar_frobnicator_complete_random_method ( 1020s # OrgProjectBarFrobnicator *object, 1020s # GDBusMethodInvocation *invocation); 1020s # 1020s # 1020s # 1020s # /* D-Bus method calls: */ 1020s # void org_project_bar_frobnicator_call_random_method ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # 1020s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # 1020s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1020s # 1020s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1020s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1020s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1020s # 1020s # struct _OrgProjectBarFrobnicatorProxy 1020s # { 1020s # /*< private >*/ 1020s # GDBusProxy parent_instance; 1020s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1020s # }; 1020s # 1020s # struct _OrgProjectBarFrobnicatorProxyClass 1020s # { 1020s # GDBusProxyClass parent_class; 1020s # }; 1020s # 1020s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1020s # #endif 1020s # 1020s # void org_project_bar_frobnicator_proxy_new ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1020s # GAsyncResult *res, 1020s # GError **error); 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error); 1020s # 1020s # 1020s # /* ---- */ 1020s # 1020s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1020s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1020s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1020s # 1020s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1020s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1020s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1020s # 1020s # struct _OrgProjectBarFrobnicatorSkeleton 1020s # { 1020s # /*< private >*/ 1020s # GDBusInterfaceSkeleton parent_instance; 1020s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1020s # }; 1020s # 1020s # struct _OrgProjectBarFrobnicatorSkeletonClass 1020s # { 1020s # GDBusInterfaceSkeletonClass parent_class; 1020s # }; 1020s # 1020s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1020s # 1020s # #if GLIB_CHECK_VERSION(2, 44, 0) 1020s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1020s # #endif 1020s # 1020s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1020s # 1020s # 1020s # G_END_DECLS 1020s # 1020s # #endif /* __STDOUT__ */ 1020s # Error: 1020s # 1020s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpooctb1pv/tmpb8fpvmwy1.xml', '/tmp/tmpooctb1pv/tmpvsyj3em42.xml', '--output', '-', '--body'] 1020s # Return code: 0 1020s # Output: 1020s # /* 1020s # * This file is generated by gdbus-codegen, do not modify it. 1020s # * 1020s # * The license of this code is the same as for the D-Bus interface description 1020s # * it was derived from. Note that it links to GLib, so must comply with the 1020s # * LGPL linking clauses. 1020s # */ 1020s # 1020s # #ifdef HAVE_CONFIG_H 1020s # # include "config.h" 1020s # #endif 1020s # 1020s # #include 1020s # #ifdef G_OS_UNIX 1020s # # include 1020s # #endif 1020s # 1020s # #ifdef G_ENABLE_DEBUG 1020s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1020s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1020s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1020s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1020s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1020s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1020s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1020s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1020s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1020s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1020s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1020s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1020s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1020s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1020s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1020s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1020s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1020s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1020s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1020s # #else /* !G_ENABLE_DEBUG */ 1020s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1020s # * Do not access GValues directly in your code. Instead, use the 1020s # * g_value_get_*() functions 1020s # */ 1020s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1020s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1020s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1020s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1020s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1020s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1020s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1020s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1020s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1020s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1020s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1020s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1020s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1020s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1020s # #endif /* !G_ENABLE_DEBUG */ 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusArgInfo parent_struct; 1020s # gboolean use_gvariant; 1020s # } _ExtendedGDBusArgInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusMethodInfo parent_struct; 1020s # const gchar *signal_name; 1020s # gboolean pass_fdlist; 1020s # } _ExtendedGDBusMethodInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusSignalInfo parent_struct; 1020s # const gchar *signal_name; 1020s # } _ExtendedGDBusSignalInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusPropertyInfo parent_struct; 1020s # const gchar *hyphen_name; 1020s # guint use_gvariant : 1; 1020s # guint emits_changed_signal : 1; 1020s # } _ExtendedGDBusPropertyInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusInterfaceInfo parent_struct; 1020s # const gchar *hyphen_name; 1020s # } _ExtendedGDBusInterfaceInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # const _ExtendedGDBusPropertyInfo *info; 1020s # guint prop_id; 1020s # GValue orig_value; /* the value before the change */ 1020s # } ChangedProperty; 1020s # 1020s # static void 1020s # _changed_property_free (ChangedProperty *data) 1020s # { 1020s # g_value_unset (&data->orig_value); 1020s # g_free (data); 1020s # } 1020s # 1020s # static gboolean 1020s # _g_strv_equal0 (gchar **a, gchar **b) 1020s # { 1020s # gboolean ret = FALSE; 1020s # guint n; 1020s # if (a == NULL && b == NULL) 1020s # { 1020s # ret = TRUE; 1020s # goto out; 1020s # } 1020s # if (a == NULL || b == NULL) 1020s # goto out; 1020s # if (g_strv_length (a) != g_strv_length (b)) 1020s # goto out; 1020s # for (n = 0; a[n] != NULL; n++) 1020s # if (g_strcmp0 (a[n], b[n]) != 0) 1020s # goto out; 1020s # ret = TRUE; 1020s # out: 1020s # return ret; 1020s # } 1020s # 1020s # static gboolean 1020s # _g_variant_equal0 (GVariant *a, GVariant *b) 1020s # { 1020s # gboolean ret = FALSE; 1020s # if (a == NULL && b == NULL) 1020s # { 1020s # ret = TRUE; 1020s # goto out; 1020s # } 1020s # if (a == NULL || b == NULL) 1020s # goto out; 1020s # ret = g_variant_equal (a, b); 1020s # out: 1020s # return ret; 1020s # } 1020s # 1020s # G_GNUC_UNUSED static gboolean 1020s # _g_value_equal (const GValue *a, const GValue *b) 1020s # { 1020s # gboolean ret = FALSE; 1020s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1020s # switch (G_VALUE_TYPE (a)) 1020s # { 1020s # case G_TYPE_BOOLEAN: 1020s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1020s # break; 1020s # case G_TYPE_UCHAR: 1020s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1020s # break; 1020s # case G_TYPE_INT: 1020s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1020s # break; 1020s # case G_TYPE_UINT: 1020s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1020s # break; 1020s # case G_TYPE_INT64: 1020s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1020s # break; 1020s # case G_TYPE_UINT64: 1020s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1020s # break; 1020s # case G_TYPE_DOUBLE: 1020s # { 1020s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1020s # gdouble da = g_value_get_double (a); 1020s # gdouble db = g_value_get_double (b); 1020s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1020s # } 1020s # break; 1020s # case G_TYPE_STRING: 1020s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1020s # break; 1020s # case G_TYPE_VARIANT: 1020s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1020s # break; 1020s # default: 1020s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1020s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1020s # else 1020s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1020s # break; 1020s # } 1020s # return ret; 1020s # } 1020s # 1020s # static void 1020s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint G_GNUC_UNUSED, 1020s # void *marshal_data) 1020s # { 1020s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1020s # (void *data1, 1020s # GDBusMethodInvocation *arg_method_invocation, 1020s # void *data2); 1020s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1020s # GCClosure *cc = (GCClosure*) closure; 1020s # void *data1, *data2; 1020s # gboolean v_return; 1020s # 1020s # g_return_if_fail (return_value != NULL); 1020s # g_return_if_fail (n_param_values == 2); 1020s # 1020s # if (G_CCLOSURE_SWAP_DATA (closure)) 1020s # { 1020s # data1 = closure->data; 1020s # data2 = g_value_peek_pointer (param_values + 0); 1020s # } 1020s # else 1020s # { 1020s # data1 = g_value_peek_pointer (param_values + 0); 1020s # data2 = closure->data; 1020s # } 1020s # 1020s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1020s # (marshal_data ? marshal_data : cc->callback); 1020s # 1020s # v_return = 1020s # callback (data1, 1020s # g_marshal_value_peek_object (param_values + 1), 1020s # data2); 1020s # 1020s # g_value_set_boolean (return_value, v_return); 1020s # } 1020s # 1020s # /* ------------------------------------------------------------------------ 1020s # * Code for interface com.acme.Coyote 1020s # * ------------------------------------------------------------------------ 1020s # */ 1020s # 1020s # /** 1020s # * SECTION:ComAcmeCoyote 1020s # * @title: ComAcmeCoyote 1020s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1020s # * 1020s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1020s # */ 1020s # 1020s # enum 1020s # { 1020s # _COM_ACME_COYOTE_SURPRISED, 1020s # }; 1020s # 1020s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1020s # 1020s # /* ---- Introspection data for com.acme.Coyote ---- */ 1020s # 1020s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Run", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-run", 1020s # FALSE 1020s # }; 1020s # 1020s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Sleep", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-sleep", 1020s # FALSE 1020s # }; 1020s # 1020s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Attack", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-attack", 1020s # FALSE 1020s # }; 1020s # 1020s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1020s # { 1020s # &_com_acme_coyote_method_info_run.parent_struct, 1020s # &_com_acme_coyote_method_info_sleep.parent_struct, 1020s # &_com_acme_coyote_method_info_attack.parent_struct, 1020s # NULL 1020s # }; 1020s # 1020s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Surprised", 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "surprised" 1020s # }; 1020s # 1020s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1020s # { 1020s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1020s # NULL 1020s # }; 1020s # 1020s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Mood", 1020s # (gchar *) "s", 1020s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1020s # NULL 1020s # }, 1020s # "mood", 1020s # FALSE, 1020s # TRUE 1020s # }; 1020s # 1020s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1020s # { 1020s # &_com_acme_coyote_property_info_mood.parent_struct, 1020s # NULL 1020s # }; 1020s # 1020s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "com.acme.Coyote", 1020s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1020s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1020s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1020s # NULL 1020s # }, 1020s # "com-acme-coyote", 1020s # }; 1020s # 1020s # 1020s # /** 1020s # * com_acme_coyote_interface_info: 1020s # * 1020s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1020s # * 1020s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1020s # */ 1020s # GDBusInterfaceInfo * 1020s # com_acme_coyote_interface_info (void) 1020s # { 1020s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_override_properties: 1020s # * @klass: The class structure for a #GObject derived class. 1020s # * @property_id_begin: The property id to assign to the first overridden property. 1020s # * 1020s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1020s # * The properties are overridden in the order they are defined. 1020s # * 1020s # * Returns: The last property id. 1020s # */ 1020s # guint 1020s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1020s # { 1020s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1020s # return property_id_begin - 1; 1020s # } 1020s # 1020s # 1020s # inline static void 1020s # com_acme_coyote_signal_marshal_surprised ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint, 1020s # void *marshal_data) 1020s # { 1020s # g_cclosure_marshal_VOID__VOID (closure, 1020s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1020s # } 1020s # 1020s # inline static void 1020s # com_acme_coyote_method_marshal_run ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint, 1020s # void *marshal_data) 1020s # { 1020s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1020s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1020s # } 1020s # 1020s # inline static void 1020s # com_acme_coyote_method_marshal_sleep ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint, 1020s # void *marshal_data) 1020s # { 1020s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1020s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1020s # } 1020s # 1020s # inline static void 1020s # com_acme_coyote_method_marshal_attack ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint, 1020s # void *marshal_data) 1020s # { 1020s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1020s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1020s # } 1020s # 1020s # 1020s # /** 1020s # * ComAcmeCoyote: 1020s # * 1020s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1020s # */ 1020s # 1020s # /** 1020s # * ComAcmeCoyoteIface: 1020s # * @parent_iface: The parent interface. 1020s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1020s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1020s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1020s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1020s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1020s # * 1020s # * Virtual table for the D-Bus interface com.acme.Coyote. 1020s # */ 1020s # 1020s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1020s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1020s # 1020s # static void 1020s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1020s # { 1020s # /* GObject signals for incoming D-Bus method calls: */ 1020s # /** 1020s # * ComAcmeCoyote::handle-run: 1020s # * @object: A #ComAcmeCoyote. 1020s # * @invocation: A #GDBusMethodInvocation. 1020s # * 1020s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1020s # * 1020s # * 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. 1020s # * 1020s # * 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. 1020s # */ 1020s # g_signal_new ("handle-run", 1020s # G_TYPE_FROM_INTERFACE (iface), 1020s # G_SIGNAL_RUN_LAST, 1020s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1020s # g_signal_accumulator_true_handled, 1020s # NULL, 1020s # com_acme_coyote_method_marshal_run, 1020s # G_TYPE_BOOLEAN, 1020s # 1, 1020s # G_TYPE_DBUS_METHOD_INVOCATION); 1020s # 1020s # /** 1020s # * ComAcmeCoyote::handle-sleep: 1020s # * @object: A #ComAcmeCoyote. 1020s # * @invocation: A #GDBusMethodInvocation. 1020s # * 1020s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1020s # * 1020s # * 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. 1020s # * 1020s # * 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. 1020s # */ 1020s # g_signal_new ("handle-sleep", 1020s # G_TYPE_FROM_INTERFACE (iface), 1020s # G_SIGNAL_RUN_LAST, 1020s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1020s # g_signal_accumulator_true_handled, 1020s # NULL, 1020s # com_acme_coyote_method_marshal_sleep, 1020s # G_TYPE_BOOLEAN, 1020s # 1, 1020s # G_TYPE_DBUS_METHOD_INVOCATION); 1020s # 1020s # /** 1020s # * ComAcmeCoyote::handle-attack: 1020s # * @object: A #ComAcmeCoyote. 1020s # * @invocation: A #GDBusMethodInvocation. 1020s # * 1020s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1020s # * 1020s # * 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. 1020s # * 1020s # * 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. 1020s # */ 1020s # g_signal_new ("handle-attack", 1020s # G_TYPE_FROM_INTERFACE (iface), 1020s # G_SIGNAL_RUN_LAST, 1020s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1020s # g_signal_accumulator_true_handled, 1020s # NULL, 1020s # com_acme_coyote_method_marshal_attack, 1020s # G_TYPE_BOOLEAN, 1020s # 1, 1020s # G_TYPE_DBUS_METHOD_INVOCATION); 1020s # 1020s # /* GObject signals for received D-Bus signals: */ 1020s # /** 1020s # * ComAcmeCoyote::surprised: 1020s # * @object: A #ComAcmeCoyote. 1020s # * 1020s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1020s # * 1020s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1020s # */ 1020s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1020s # g_signal_new ("surprised", 1020s # G_TYPE_FROM_INTERFACE (iface), 1020s # G_SIGNAL_RUN_LAST, 1020s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1020s # NULL, 1020s # NULL, 1020s # com_acme_coyote_signal_marshal_surprised, 1020s # G_TYPE_NONE, 1020s # 0); 1020s # 1020s # /* GObject properties for D-Bus properties: */ 1020s # /** 1020s # * ComAcmeCoyote:mood: 1020s # * 1020s # * Represents the D-Bus property "Mood". 1020s # * 1020s # * 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. 1020s # */ 1020s # g_object_interface_install_property (iface, 1020s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_get_mood: (skip) 1020s # * @object: A #ComAcmeCoyote. 1020s # * 1020s # * Gets the value of the "Mood" D-Bus property. 1020s # * 1020s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1020s # * 1020s # * 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. 1020s # * 1020s # * 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. 1020s # */ 1020s # const gchar * 1020s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1020s # { 1020s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1020s # 1020s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_dup_mood: (skip) 1020s # * @object: A #ComAcmeCoyote. 1020s # * 1020s # * Gets a copy of the "Mood" D-Bus property. 1020s # * 1020s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1020s # * 1020s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1020s # */ 1020s # gchar * 1020s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1020s # { 1020s # gchar *value; 1020s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1020s # return value; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_set_mood: (skip) 1020s # * @object: A #ComAcmeCoyote. 1020s # * @value: The value to set. 1020s # * 1020s # * Sets the "Mood" D-Bus property to @value. 1020s # * 1020s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1020s # */ 1020s # void 1020s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1020s # { 1020s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_emit_surprised: 1020s # * @object: A #ComAcmeCoyote. 1020s # * 1020s # * Emits the "Surprised" D-Bus signal. 1020s # */ 1020s # void 1020s # com_acme_coyote_emit_surprised ( 1020s # ComAcmeCoyote *object) 1020s # { 1020s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_run: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1020s # * 1020s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1020s # */ 1020s # void 1020s # com_acme_coyote_call_run ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1020s # "Run", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # callback, 1020s # user_data); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_run_finish: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Finishes an operation started with com_acme_coyote_call_run(). 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # com_acme_coyote_call_run_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_run_sync: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1020s # * 1020s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # com_acme_coyote_call_run_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1020s # "Run", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_sleep: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1020s # * 1020s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1020s # */ 1020s # void 1020s # com_acme_coyote_call_sleep ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1020s # "Sleep", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # callback, 1020s # user_data); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_sleep_finish: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # com_acme_coyote_call_sleep_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_sleep_sync: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1020s # * 1020s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # com_acme_coyote_call_sleep_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1020s # "Sleep", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_attack: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1020s # * 1020s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1020s # */ 1020s # void 1020s # com_acme_coyote_call_attack ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1020s # "Attack", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # callback, 1020s # user_data); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_attack_finish: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Finishes an operation started with com_acme_coyote_call_attack(). 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # com_acme_coyote_call_attack_finish ( 1020s # ComAcmeCoyote *proxy, 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_call_attack_sync: 1020s # * @proxy: A #ComAcmeCoyoteProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1020s # * 1020s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # com_acme_coyote_call_attack_sync ( 1020s # ComAcmeCoyote *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1020s # "Attack", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_complete_run: 1020s # * @object: A #ComAcmeCoyote. 1020s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1020s # * 1020s # * 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. 1020s # * 1020s # * This method will free @invocation, you cannot use it afterwards. 1020s # */ 1020s # void 1020s # com_acme_coyote_complete_run ( 1020s # ComAcmeCoyote *object G_GNUC_UNUSED, 1020s # GDBusMethodInvocation *invocation) 1020s # { 1020s # g_dbus_method_invocation_return_value (invocation, 1020s # g_variant_new ("()")); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_complete_sleep: 1020s # * @object: A #ComAcmeCoyote. 1020s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1020s # * 1020s # * 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. 1020s # * 1020s # * This method will free @invocation, you cannot use it afterwards. 1020s # */ 1020s # void 1020s # com_acme_coyote_complete_sleep ( 1020s # ComAcmeCoyote *object G_GNUC_UNUSED, 1020s # GDBusMethodInvocation *invocation) 1020s # { 1020s # g_dbus_method_invocation_return_value (invocation, 1020s # g_variant_new ("()")); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_complete_attack: 1020s # * @object: A #ComAcmeCoyote. 1020s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1020s # * 1020s # * 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. 1020s # * 1020s # * This method will free @invocation, you cannot use it afterwards. 1020s # */ 1020s # void 1020s # com_acme_coyote_complete_attack ( 1020s # ComAcmeCoyote *object G_GNUC_UNUSED, 1020s # GDBusMethodInvocation *invocation) 1020s # { 1020s # g_dbus_method_invocation_return_value (invocation, 1020s # g_variant_new ("()")); 1020s # } 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # 1020s # /** 1020s # * ComAcmeCoyoteProxy: 1020s # * 1020s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1020s # */ 1020s # 1020s # /** 1020s # * ComAcmeCoyoteProxyClass: 1020s # * @parent_class: The parent class. 1020s # * 1020s # * Class structure for #ComAcmeCoyoteProxy. 1020s # */ 1020s # 1020s # struct _ComAcmeCoyoteProxyPrivate 1020s # { 1020s # GData *qdata; 1020s # }; 1020s # 1020s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1020s # 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1020s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1020s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1020s # 1020s # #else 1020s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1020s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1020s # 1020s # #endif 1020s # static void 1020s # com_acme_coyote_proxy_finalize (GObject *object) 1020s # { 1020s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1020s # g_datalist_clear (&proxy->priv->qdata); 1020s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_get_property (GObject *object, 1020s # guint prop_id, 1020s # GValue *value, 1020s # GParamSpec *pspec G_GNUC_UNUSED) 1020s # { 1020s # const _ExtendedGDBusPropertyInfo *info; 1020s # GVariant *variant; 1020s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1020s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1020s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1020s # if (info->use_gvariant) 1020s # { 1020s # g_value_set_variant (value, variant); 1020s # } 1020s # else 1020s # { 1020s # if (variant != NULL) 1020s # g_dbus_gvariant_to_gvalue (variant, value); 1020s # } 1020s # if (variant != NULL) 1020s # g_variant_unref (variant); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1020s # GAsyncResult *res, 1020s # gpointer user_data) 1020s # { 1020s # const _ExtendedGDBusPropertyInfo *info = user_data; 1020s # GError *error; 1020s # GVariant *_ret; 1020s # error = NULL; 1020s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1020s # if (!_ret) 1020s # { 1020s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1020s # info->parent_struct.name, 1020s # error->message, g_quark_to_string (error->domain), error->code); 1020s # g_error_free (error); 1020s # } 1020s # else 1020s # { 1020s # g_variant_unref (_ret); 1020s # } 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_set_property (GObject *object, 1020s # guint prop_id, 1020s # const GValue *value, 1020s # GParamSpec *pspec G_GNUC_UNUSED) 1020s # { 1020s # const _ExtendedGDBusPropertyInfo *info; 1020s # GVariant *variant; 1020s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1020s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1020s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1020s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1020s # "org.freedesktop.DBus.Properties.Set", 1020s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1020s # g_variant_unref (variant); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1020s # const gchar *sender_name G_GNUC_UNUSED, 1020s # const gchar *signal_name, 1020s # GVariant *parameters) 1020s # { 1020s # _ExtendedGDBusSignalInfo *info; 1020s # GVariantIter iter; 1020s # GVariant *child; 1020s # GValue *paramv; 1020s # gsize num_params; 1020s # gsize n; 1020s # guint signal_id; 1020s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1020s # if (info == NULL) 1020s # return; 1020s # num_params = g_variant_n_children (parameters); 1020s # paramv = g_new0 (GValue, num_params + 1); 1020s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1020s # g_value_set_object (¶mv[0], proxy); 1020s # g_variant_iter_init (&iter, parameters); 1020s # n = 1; 1020s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1020s # { 1020s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1020s # if (arg_info->use_gvariant) 1020s # { 1020s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1020s # g_value_set_variant (¶mv[n], child); 1020s # n++; 1020s # } 1020s # else 1020s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1020s # g_variant_unref (child); 1020s # } 1020s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1020s # g_signal_emitv (paramv, signal_id, 0, NULL); 1020s # for (n = 0; n < num_params + 1; n++) 1020s # g_value_unset (¶mv[n]); 1020s # g_free (paramv); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1020s # GVariant *changed_properties, 1020s # const gchar *const *invalidated_properties) 1020s # { 1020s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1020s # guint n; 1020s # const gchar *key; 1020s # GVariantIter *iter; 1020s # _ExtendedGDBusPropertyInfo *info; 1020s # g_variant_get (changed_properties, "a{sv}", &iter); 1020s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1020s # { 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1020s # g_datalist_remove_data (&proxy->priv->qdata, key); 1020s # if (info != NULL) 1020s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1020s # } 1020s # g_variant_iter_free (iter); 1020s # for (n = 0; invalidated_properties[n] != NULL; n++) 1020s # { 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1020s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1020s # if (info != NULL) 1020s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1020s # } 1020s # } 1020s # 1020s # static const gchar * 1020s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1020s # { 1020s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1020s # GVariant *variant; 1020s # const gchar *value = NULL; 1020s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1020s # if (variant != NULL) 1020s # { 1020s # value = g_variant_get_string (variant, NULL); 1020s # g_variant_unref (variant); 1020s # } 1020s # return value; 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1020s # { 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1020s # #else 1020s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1020s # #endif 1020s # 1020s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1020s # { 1020s # GObjectClass *gobject_class; 1020s # GDBusProxyClass *proxy_class; 1020s # 1020s # gobject_class = G_OBJECT_CLASS (klass); 1020s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1020s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1020s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1020s # 1020s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1020s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1020s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1020s # 1020s # com_acme_coyote_override_properties (gobject_class, 1); 1020s # 1020s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1020s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1020s # #endif 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1020s # { 1020s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_proxy_new: 1020s # * @connection: A #GDBusConnection. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1020s # * 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1020s # * 1020s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1020s # */ 1020s # void 1020s # com_acme_coyote_proxy_new ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # 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); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_proxy_new_finish: 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1020s # * 1020s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # ComAcmeCoyote * 1020s # com_acme_coyote_proxy_new_finish ( 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GObject *ret; 1020s # GObject *source_object; 1020s # source_object = g_async_result_get_source_object (res); 1020s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1020s # g_object_unref (source_object); 1020s # if (ret != NULL) 1020s # return COM_ACME_COYOTE (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_proxy_new_sync: 1020s # * @connection: A #GDBusConnection. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1020s # * 1020s # * The calling thread is blocked until a reply is received. 1020s # * 1020s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1020s # * 1020s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # ComAcmeCoyote * 1020s # com_acme_coyote_proxy_new_sync ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GInitable *ret; 1020s # 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); 1020s # if (ret != NULL) 1020s # return COM_ACME_COYOTE (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # 1020s # /** 1020s # * com_acme_coyote_proxy_new_for_bus: 1020s # * @bus_type: A #GBusType. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: A bus name (well-known or unique). 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1020s # * 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1020s # * 1020s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1020s # */ 1020s # void 1020s # com_acme_coyote_proxy_new_for_bus ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # 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); 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_proxy_new_for_bus_finish: 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1020s # * 1020s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # ComAcmeCoyote * 1020s # com_acme_coyote_proxy_new_for_bus_finish ( 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GObject *ret; 1020s # GObject *source_object; 1020s # source_object = g_async_result_get_source_object (res); 1020s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1020s # g_object_unref (source_object); 1020s # if (ret != NULL) 1020s # return COM_ACME_COYOTE (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_proxy_new_for_bus_sync: 1020s # * @bus_type: A #GBusType. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: A bus name (well-known or unique). 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1020s # * 1020s # * The calling thread is blocked until a reply is received. 1020s # * 1020s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1020s # * 1020s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # ComAcmeCoyote * 1020s # com_acme_coyote_proxy_new_for_bus_sync ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GInitable *ret; 1020s # 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); 1020s # if (ret != NULL) 1020s # return COM_ACME_COYOTE (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # 1020s # /** 1020s # * ComAcmeCoyoteSkeleton: 1020s # * 1020s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1020s # */ 1020s # 1020s # /** 1020s # * ComAcmeCoyoteSkeletonClass: 1020s # * @parent_class: The parent class. 1020s # * 1020s # * Class structure for #ComAcmeCoyoteSkeleton. 1020s # */ 1020s # 1020s # struct _ComAcmeCoyoteSkeletonPrivate 1020s # { 1020s # GValue *properties; 1020s # GList *changed_properties; 1020s # GSource *changed_properties_idle_source; 1020s # GMainContext *context; 1020s # GMutex lock; 1020s # }; 1020s # 1020s # static void 1020s # _com_acme_coyote_skeleton_handle_method_call ( 1020s # GDBusConnection *connection G_GNUC_UNUSED, 1020s # const gchar *sender G_GNUC_UNUSED, 1020s # const gchar *object_path G_GNUC_UNUSED, 1020s # const gchar *interface_name, 1020s # const gchar *method_name, 1020s # GVariant *parameters, 1020s # GDBusMethodInvocation *invocation, 1020s # gpointer user_data) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1020s # _ExtendedGDBusMethodInfo *info; 1020s # GVariantIter iter; 1020s # GVariant *child; 1020s # GValue *paramv; 1020s # gsize num_params; 1020s # guint num_extra; 1020s # gsize n; 1020s # guint signal_id; 1020s # GValue return_value = G_VALUE_INIT; 1020s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1020s # g_assert (info != NULL); 1020s # num_params = g_variant_n_children (parameters); 1020s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1020s # n = 0; 1020s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1020s # g_value_set_object (¶mv[n++], skeleton); 1020s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1020s # g_value_set_object (¶mv[n++], invocation); 1020s # if (info->pass_fdlist) 1020s # { 1020s # #ifdef G_OS_UNIX 1020s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1020s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1020s # #else 1020s # g_assert_not_reached (); 1020s # #endif 1020s # } 1020s # g_variant_iter_init (&iter, parameters); 1020s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1020s # { 1020s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1020s # if (arg_info->use_gvariant) 1020s # { 1020s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1020s # g_value_set_variant (¶mv[n], child); 1020s # n++; 1020s # } 1020s # else 1020s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1020s # g_variant_unref (child); 1020s # } 1020s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1020s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1020s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1020s # if (!g_value_get_boolean (&return_value)) 1020s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1020s # g_value_unset (&return_value); 1020s # for (n = 0; n < num_params + num_extra; n++) 1020s # g_value_unset (¶mv[n]); 1020s # g_free (paramv); 1020s # } 1020s # 1020s # static GVariant * 1020s # _com_acme_coyote_skeleton_handle_get_property ( 1020s # GDBusConnection *connection G_GNUC_UNUSED, 1020s # const gchar *sender G_GNUC_UNUSED, 1020s # const gchar *object_path G_GNUC_UNUSED, 1020s # const gchar *interface_name G_GNUC_UNUSED, 1020s # const gchar *property_name, 1020s # GError **error, 1020s # gpointer user_data) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1020s # GValue value = G_VALUE_INIT; 1020s # GParamSpec *pspec; 1020s # _ExtendedGDBusPropertyInfo *info; 1020s # GVariant *ret; 1020s # ret = NULL; 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1020s # g_assert (info != NULL); 1020s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1020s # if (pspec == NULL) 1020s # { 1020s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1020s # } 1020s # else 1020s # { 1020s # g_value_init (&value, pspec->value_type); 1020s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1020s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1020s # g_value_unset (&value); 1020s # } 1020s # return ret; 1020s # } 1020s # 1020s # static gboolean 1020s # _com_acme_coyote_skeleton_handle_set_property ( 1020s # GDBusConnection *connection G_GNUC_UNUSED, 1020s # const gchar *sender G_GNUC_UNUSED, 1020s # const gchar *object_path G_GNUC_UNUSED, 1020s # const gchar *interface_name G_GNUC_UNUSED, 1020s # const gchar *property_name, 1020s # GVariant *variant, 1020s # GError **error, 1020s # gpointer user_data) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1020s # GValue value = G_VALUE_INIT; 1020s # GParamSpec *pspec; 1020s # _ExtendedGDBusPropertyInfo *info; 1020s # gboolean ret; 1020s # ret = FALSE; 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1020s # g_assert (info != NULL); 1020s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1020s # if (pspec == NULL) 1020s # { 1020s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1020s # } 1020s # else 1020s # { 1020s # if (info->use_gvariant) 1020s # g_value_set_variant (&value, variant); 1020s # else 1020s # g_dbus_gvariant_to_gvalue (variant, &value); 1020s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1020s # g_value_unset (&value); 1020s # ret = TRUE; 1020s # } 1020s # return ret; 1020s # } 1020s # 1020s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1020s # { 1020s # _com_acme_coyote_skeleton_handle_method_call, 1020s # _com_acme_coyote_skeleton_handle_get_property, 1020s # _com_acme_coyote_skeleton_handle_set_property, 1020s # {NULL} 1020s # }; 1020s # 1020s # static GDBusInterfaceInfo * 1020s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1020s # { 1020s # return com_acme_coyote_interface_info (); 1020s # } 1020s # 1020s # static GDBusInterfaceVTable * 1020s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1020s # { 1020s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1020s # } 1020s # 1020s # static GVariant * 1020s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1020s # 1020s # GVariantBuilder builder; 1020s # guint n; 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1020s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1020s # #else 1020s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1020s # #endif 1020s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1020s # goto out; 1020s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1020s # { 1020s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1020s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1020s # { 1020s # GVariant *value; 1020s # 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); 1020s # if (value != NULL) 1020s # { 1020s # g_variant_take_ref (value); 1020s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1020s # g_variant_unref (value); 1020s # } 1020s # } 1020s # } 1020s # out: 1020s # return g_variant_builder_end (&builder); 1020s # } 1020s # 1020s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1020s # gboolean emit_changed = FALSE; 1020s # 1020s # g_mutex_lock (&skeleton->priv->lock); 1020s # if (skeleton->priv->changed_properties_idle_source != NULL) 1020s # { 1020s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1020s # skeleton->priv->changed_properties_idle_source = NULL; 1020s # emit_changed = TRUE; 1020s # } 1020s # g_mutex_unlock (&skeleton->priv->lock); 1020s # 1020s # if (emit_changed) 1020s # _com_acme_coyote_emit_changed (skeleton); 1020s # } 1020s # 1020s # static void 1020s # _com_acme_coyote_on_signal_surprised ( 1020s # ComAcmeCoyote *object) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1020s # 1020s # GList *connections, *l; 1020s # GVariant *signal_variant; 1020s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1020s # 1020s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1020s # for (l = connections; l != NULL; l = l->next) 1020s # { 1020s # GDBusConnection *connection = l->data; 1020s # g_dbus_connection_emit_signal (connection, 1020s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1020s # signal_variant, NULL); 1020s # } 1020s # g_variant_unref (signal_variant); 1020s # g_list_free_full (connections, g_object_unref); 1020s # } 1020s # 1020s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1020s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1020s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1020s # 1020s # #else 1020s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1020s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1020s # 1020s # #endif 1020s # static void 1020s # com_acme_coyote_skeleton_finalize (GObject *object) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1020s # guint n; 1020s # for (n = 0; n < 1; n++) 1020s # g_value_unset (&skeleton->priv->properties[n]); 1020s # g_free (skeleton->priv->properties); 1020s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1020s # if (skeleton->priv->changed_properties_idle_source != NULL) 1020s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1020s # g_main_context_unref (skeleton->priv->context); 1020s # g_mutex_clear (&skeleton->priv->lock); 1020s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_get_property (GObject *object, 1020s # guint prop_id, 1020s # GValue *value, 1020s # GParamSpec *pspec G_GNUC_UNUSED) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1020s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1020s # g_mutex_lock (&skeleton->priv->lock); 1020s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1020s # g_mutex_unlock (&skeleton->priv->lock); 1020s # } 1020s # 1020s # static gboolean 1020s # _com_acme_coyote_emit_changed (gpointer user_data) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1020s # GList *l; 1020s # GVariantBuilder builder; 1020s # GVariantBuilder invalidated_builder; 1020s # guint num_changes; 1020s # 1020s # g_mutex_lock (&skeleton->priv->lock); 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1020s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1020s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1020s # #else 1020s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1020s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1020s # #endif 1020s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1020s # { 1020s # ChangedProperty *cp = l->data; 1020s # GVariant *variant; 1020s # const GValue *cur_value; 1020s # 1020s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1020s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1020s # { 1020s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1020s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1020s # g_variant_unref (variant); 1020s # num_changes++; 1020s # } 1020s # } 1020s # if (num_changes > 0) 1020s # { 1020s # GList *connections, *ll; 1020s # GVariant *signal_variant; 1020s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1020s # &builder, &invalidated_builder)); 1020s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1020s # for (ll = connections; ll != NULL; ll = ll->next) 1020s # { 1020s # GDBusConnection *connection = ll->data; 1020s # 1020s # g_dbus_connection_emit_signal (connection, 1020s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1020s # "org.freedesktop.DBus.Properties", 1020s # "PropertiesChanged", 1020s # signal_variant, 1020s # NULL); 1020s # } 1020s # g_variant_unref (signal_variant); 1020s # g_list_free_full (connections, g_object_unref); 1020s # } 1020s # else 1020s # { 1020s # g_variant_builder_clear (&builder); 1020s # g_variant_builder_clear (&invalidated_builder); 1020s # } 1020s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1020s # skeleton->priv->changed_properties = NULL; 1020s # skeleton->priv->changed_properties_idle_source = NULL; 1020s # g_mutex_unlock (&skeleton->priv->lock); 1020s # return FALSE; 1020s # } 1020s # 1020s # static void 1020s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1020s # { 1020s # ChangedProperty *cp; 1020s # GList *l; 1020s # cp = NULL; 1020s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1020s # { 1020s # ChangedProperty *i_cp = l->data; 1020s # if (i_cp->info == info) 1020s # { 1020s # cp = i_cp; 1020s # break; 1020s # } 1020s # } 1020s # if (cp == NULL) 1020s # { 1020s # cp = g_new0 (ChangedProperty, 1); 1020s # cp->prop_id = prop_id; 1020s # cp->info = info; 1020s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1020s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1020s # g_value_copy (orig_value, &cp->orig_value); 1020s # } 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_notify (GObject *object, 1020s # GParamSpec *pspec G_GNUC_UNUSED) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1020s # g_mutex_lock (&skeleton->priv->lock); 1020s # if (skeleton->priv->changed_properties != NULL && 1020s # skeleton->priv->changed_properties_idle_source == NULL) 1020s # { 1020s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1020s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1020s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1020s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1020s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1020s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1020s # } 1020s # g_mutex_unlock (&skeleton->priv->lock); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_set_property (GObject *object, 1020s # guint prop_id, 1020s # const GValue *value, 1020s # GParamSpec *pspec) 1020s # { 1020s # const _ExtendedGDBusPropertyInfo *info; 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1020s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1020s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1020s # g_mutex_lock (&skeleton->priv->lock); 1020s # g_object_freeze_notify (object); 1020s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1020s # { 1020s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1020s # info->emits_changed_signal) 1020s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1020s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1020s # g_object_notify_by_pspec (object, pspec); 1020s # } 1020s # g_mutex_unlock (&skeleton->priv->lock); 1020s # g_object_thaw_notify (object); 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1020s # { 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1020s # #else 1020s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1020s # #endif 1020s # 1020s # g_mutex_init (&skeleton->priv->lock); 1020s # skeleton->priv->context = g_main_context_ref_thread_default (); 1020s # skeleton->priv->properties = g_new0 (GValue, 1); 1020s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1020s # } 1020s # 1020s # static const gchar * 1020s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1020s # { 1020s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1020s # const gchar *value; 1020s # g_mutex_lock (&skeleton->priv->lock); 1020s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1020s # g_mutex_unlock (&skeleton->priv->lock); 1020s # return value; 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1020s # { 1020s # GObjectClass *gobject_class; 1020s # GDBusInterfaceSkeletonClass *skeleton_class; 1020s # 1020s # gobject_class = G_OBJECT_CLASS (klass); 1020s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1020s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1020s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1020s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1020s # 1020s # 1020s # com_acme_coyote_override_properties (gobject_class, 1); 1020s # 1020s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1020s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1020s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1020s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1020s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1020s # 1020s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1020s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1020s # #endif 1020s # } 1020s # 1020s # static void 1020s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1020s # { 1020s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1020s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1020s # } 1020s # 1020s # /** 1020s # * com_acme_coyote_skeleton_new: 1020s # * 1020s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1020s # * 1020s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1020s # */ 1020s # ComAcmeCoyote * 1020s # com_acme_coyote_skeleton_new (void) 1020s # { 1020s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1020s # } 1020s # 1020s # /* ------------------------------------------------------------------------ 1020s # * Code for interface org.project.Bar.Frobnicator 1020s # * ------------------------------------------------------------------------ 1020s # */ 1020s # 1020s # /** 1020s # * SECTION:OrgProjectBarFrobnicator 1020s # * @title: OrgProjectBarFrobnicator 1020s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1020s # * 1020s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1020s # */ 1020s # 1020s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1020s # 1020s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "RandomMethod", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-random-method", 1020s # FALSE 1020s # }; 1020s # 1020s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1020s # { 1020s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1020s # NULL 1020s # }; 1020s # 1020s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "org.project.Bar.Frobnicator", 1020s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "org-project-bar-frobnicator", 1020s # }; 1020s # 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_interface_info: 1020s # * 1020s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1020s # * 1020s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1020s # */ 1020s # GDBusInterfaceInfo * 1020s # org_project_bar_frobnicator_interface_info (void) 1020s # { 1020s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_override_properties: 1020s # * @klass: The class structure for a #GObject derived class. 1020s # * @property_id_begin: The property id to assign to the first overridden property. 1020s # * 1020s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1020s # * The properties are overridden in the order they are defined. 1020s # * 1020s # * Returns: The last property id. 1020s # */ 1020s # guint 1020s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1020s # { 1020s # return property_id_begin - 1; 1020s # } 1020s # 1020s # 1020s # inline static void 1020s # org_project_bar_frobnicator_method_marshal_random_method ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint, 1020s # void *marshal_data) 1020s # { 1020s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1020s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1020s # } 1020s # 1020s # 1020s # /** 1020s # * OrgProjectBarFrobnicator: 1020s # * 1020s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1020s # */ 1020s # 1020s # /** 1020s # * OrgProjectBarFrobnicatorIface: 1020s # * @parent_iface: The parent interface. 1020s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1020s # * 1020s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1020s # */ 1020s # 1020s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1020s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1020s # { 1020s # /* GObject signals for incoming D-Bus method calls: */ 1020s # /** 1020s # * OrgProjectBarFrobnicator::handle-random-method: 1020s # * @object: A #OrgProjectBarFrobnicator. 1020s # * @invocation: A #GDBusMethodInvocation. 1020s # * 1020s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1020s # * 1020s # * 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. 1020s # * 1020s # * 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. 1020s # */ 1020s # g_signal_new ("handle-random-method", 1020s # G_TYPE_FROM_INTERFACE (iface), 1020s # G_SIGNAL_RUN_LAST, 1020s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1020s # g_signal_accumulator_true_handled, 1020s # NULL, 1020s # org_project_bar_frobnicator_method_marshal_random_method, 1020s # G_TYPE_BOOLEAN, 1020s # 1, 1020s # G_TYPE_DBUS_METHOD_INVOCATION); 1020s # 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_call_random_method: 1020s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1020s # * 1020s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1020s # */ 1020s # void 1020s # org_project_bar_frobnicator_call_random_method ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1020s # "RandomMethod", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # callback, 1020s # user_data); 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_call_random_method_finish: 1020s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # org_project_bar_frobnicator_call_random_method_finish ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_call_random_method_sync: 1020s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL. 1020s # * 1020s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1020s # * 1020s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1020s # * 1020s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1020s # */ 1020s # gboolean 1020s # org_project_bar_frobnicator_call_random_method_sync ( 1020s # OrgProjectBarFrobnicator *proxy, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GVariant *_ret; 1020s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1020s # "RandomMethod", 1020s # g_variant_new ("()"), 1020s # G_DBUS_CALL_FLAGS_NONE, 1020s # -1, 1020s # cancellable, 1020s # error); 1020s # if (_ret == NULL) 1020s # goto _out; 1020s # g_variant_get (_ret, 1020s # "()"); 1020s # g_variant_unref (_ret); 1020s # _out: 1020s # return _ret != NULL; 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_complete_random_method: 1020s # * @object: A #OrgProjectBarFrobnicator. 1020s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1020s # * 1020s # * 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. 1020s # * 1020s # * This method will free @invocation, you cannot use it afterwards. 1020s # */ 1020s # void 1020s # org_project_bar_frobnicator_complete_random_method ( 1020s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1020s # GDBusMethodInvocation *invocation) 1020s # { 1020s # g_dbus_method_invocation_return_value (invocation, 1020s # g_variant_new ("()")); 1020s # } 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # 1020s # /** 1020s # * OrgProjectBarFrobnicatorProxy: 1020s # * 1020s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1020s # */ 1020s # 1020s # /** 1020s # * OrgProjectBarFrobnicatorProxyClass: 1020s # * @parent_class: The parent class. 1020s # * 1020s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1020s # */ 1020s # 1020s # struct _OrgProjectBarFrobnicatorProxyPrivate 1020s # { 1020s # GData *qdata; 1020s # }; 1020s # 1020s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1020s # 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1020s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1020s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1020s # 1020s # #else 1020s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1020s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1020s # 1020s # #endif 1020s # static void 1020s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1020s # { 1020s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1020s # g_datalist_clear (&proxy->priv->qdata); 1020s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1020s # guint prop_id G_GNUC_UNUSED, 1020s # GValue *value G_GNUC_UNUSED, 1020s # GParamSpec *pspec G_GNUC_UNUSED) 1020s # { 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1020s # guint prop_id G_GNUC_UNUSED, 1020s # const GValue *value G_GNUC_UNUSED, 1020s # GParamSpec *pspec G_GNUC_UNUSED) 1020s # { 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1020s # const gchar *sender_name G_GNUC_UNUSED, 1020s # const gchar *signal_name, 1020s # GVariant *parameters) 1020s # { 1020s # _ExtendedGDBusSignalInfo *info; 1020s # GVariantIter iter; 1020s # GVariant *child; 1020s # GValue *paramv; 1020s # gsize num_params; 1020s # gsize n; 1020s # guint signal_id; 1020s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1020s # if (info == NULL) 1020s # return; 1020s # num_params = g_variant_n_children (parameters); 1020s # paramv = g_new0 (GValue, num_params + 1); 1020s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1020s # g_value_set_object (¶mv[0], proxy); 1020s # g_variant_iter_init (&iter, parameters); 1020s # n = 1; 1020s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1020s # { 1020s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1020s # if (arg_info->use_gvariant) 1020s # { 1020s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1020s # g_value_set_variant (¶mv[n], child); 1020s # n++; 1020s # } 1020s # else 1020s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1020s # g_variant_unref (child); 1020s # } 1020s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1020s # g_signal_emitv (paramv, signal_id, 0, NULL); 1020s # for (n = 0; n < num_params + 1; n++) 1020s # g_value_unset (¶mv[n]); 1020s # g_free (paramv); 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1020s # GVariant *changed_properties, 1020s # const gchar *const *invalidated_properties) 1020s # { 1020s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1020s # guint n; 1020s # const gchar *key; 1020s # GVariantIter *iter; 1020s # _ExtendedGDBusPropertyInfo *info; 1020s # g_variant_get (changed_properties, "a{sv}", &iter); 1020s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1020s # { 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1020s # g_datalist_remove_data (&proxy->priv->qdata, key); 1020s # if (info != NULL) 1020s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1020s # } 1020s # g_variant_iter_free (iter); 1020s # for (n = 0; invalidated_properties[n] != NULL; n++) 1020s # { 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1020s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1020s # if (info != NULL) 1020s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1020s # } 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1020s # { 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1020s # #else 1020s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1020s # #endif 1020s # 1020s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1020s # { 1020s # GObjectClass *gobject_class; 1020s # GDBusProxyClass *proxy_class; 1020s # 1020s # gobject_class = G_OBJECT_CLASS (klass); 1020s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1020s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1020s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1020s # 1020s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1020s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1020s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1020s # 1020s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1020s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1020s # #endif 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1020s # { 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_proxy_new: 1020s # * @connection: A #GDBusConnection. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1020s # * 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1020s # * 1020s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1020s # */ 1020s # void 1020s # org_project_bar_frobnicator_proxy_new ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # 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); 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_proxy_new_finish: 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1020s # * 1020s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # OrgProjectBarFrobnicator * 1020s # org_project_bar_frobnicator_proxy_new_finish ( 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GObject *ret; 1020s # GObject *source_object; 1020s # source_object = g_async_result_get_source_object (res); 1020s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1020s # g_object_unref (source_object); 1020s # if (ret != NULL) 1020s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_proxy_new_sync: 1020s # * @connection: A #GDBusConnection. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1020s # * 1020s # * The calling thread is blocked until a reply is received. 1020s # * 1020s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1020s # * 1020s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # OrgProjectBarFrobnicator * 1020s # org_project_bar_frobnicator_proxy_new_sync ( 1020s # GDBusConnection *connection, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GInitable *ret; 1020s # 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); 1020s # if (ret != NULL) 1020s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_proxy_new_for_bus: 1020s # * @bus_type: A #GBusType. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: A bus name (well-known or unique). 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1020s # * @user_data: User data to pass to @callback. 1020s # * 1020s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1020s # * 1020s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1020s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1020s # * 1020s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1020s # */ 1020s # void 1020s # org_project_bar_frobnicator_proxy_new_for_bus ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GAsyncReadyCallback callback, 1020s # gpointer user_data) 1020s # { 1020s # 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); 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1020s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1020s # * 1020s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # OrgProjectBarFrobnicator * 1020s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1020s # GAsyncResult *res, 1020s # GError **error) 1020s # { 1020s # GObject *ret; 1020s # GObject *source_object; 1020s # source_object = g_async_result_get_source_object (res); 1020s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1020s # g_object_unref (source_object); 1020s # if (ret != NULL) 1020s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1020s # * @bus_type: A #GBusType. 1020s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1020s # * @name: A bus name (well-known or unique). 1020s # * @object_path: An object path. 1020s # * @cancellable: (nullable): A #GCancellable or %NULL. 1020s # * @error: Return location for error or %NULL 1020s # * 1020s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1020s # * 1020s # * The calling thread is blocked until a reply is received. 1020s # * 1020s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1020s # * 1020s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1020s # */ 1020s # OrgProjectBarFrobnicator * 1020s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1020s # GBusType bus_type, 1020s # GDBusProxyFlags flags, 1020s # const gchar *name, 1020s # const gchar *object_path, 1020s # GCancellable *cancellable, 1020s # GError **error) 1020s # { 1020s # GInitable *ret; 1020s # 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); 1020s # if (ret != NULL) 1020s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1020s # else 1020s # return NULL; 1020s # } 1020s # 1020s # 1020s # /* ------------------------------------------------------------------------ */ 1020s # 1020s # /** 1020s # * OrgProjectBarFrobnicatorSkeleton: 1020s # * 1020s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1020s # */ 1020s # 1020s # /** 1020s # * OrgProjectBarFrobnicatorSkeletonClass: 1020s # * @parent_class: The parent class. 1020s # * 1020s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1020s # */ 1020s # 1020s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1020s # { 1020s # GValue *properties; 1020s # GList *changed_properties; 1020s # GSource *changed_properties_idle_source; 1020s # GMainContext *context; 1020s # GMutex lock; 1020s # }; 1020s # 1020s # static void 1020s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1020s # GDBusConnection *connection G_GNUC_UNUSED, 1020s # const gchar *sender G_GNUC_UNUSED, 1020s # const gchar *object_path G_GNUC_UNUSED, 1020s # const gchar *interface_name, 1020s # const gchar *method_name, 1020s # GVariant *parameters, 1020s # GDBusMethodInvocation *invocation, 1020s # gpointer user_data) 1020s # { 1020s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1020s # _ExtendedGDBusMethodInfo *info; 1020s # GVariantIter iter; 1020s # GVariant *child; 1020s # GValue *paramv; 1020s # gsize num_params; 1020s # guint num_extra; 1020s # gsize n; 1020s # guint signal_id; 1020s # GValue return_value = G_VALUE_INIT; 1020s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1020s # g_assert (info != NULL); 1020s # num_params = g_variant_n_children (parameters); 1020s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1020s # n = 0; 1020s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1020s # g_value_set_object (¶mv[n++], skeleton); 1020s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1020s # g_value_set_object (¶mv[n++], invocation); 1020s # if (info->pass_fdlist) 1020s # { 1020s # #ifdef G_OS_UNIX 1020s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1020s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1020s # #else 1020s # g_assert_not_reached (); 1020s # #endif 1020s # } 1020s # g_variant_iter_init (&iter, parameters); 1020s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1020s # { 1020s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1020s # if (arg_info->use_gvariant) 1020s # { 1020s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1020s # g_value_set_variant (¶mv[n], child); 1020s # n++; 1020s # } 1020s # else 1020s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1020s # g_variant_unref (child); 1020s # } 1020s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1020s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1020s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1020s # if (!g_value_get_boolean (&return_value)) 1020s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1020s # g_value_unset (&return_value); 1020s # for (n = 0; n < num_params + num_extra; n++) 1020s # g_value_unset (¶mv[n]); 1020s # g_free (paramv); 1020s # } 1020s # 1020s # static GVariant * 1020s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1020s # GDBusConnection *connection G_GNUC_UNUSED, 1020s # const gchar *sender G_GNUC_UNUSED, 1020s # const gchar *object_path G_GNUC_UNUSED, 1020s # const gchar *interface_name G_GNUC_UNUSED, 1020s # const gchar *property_name, 1020s # GError **error, 1020s # gpointer user_data) 1020s # { 1020s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1020s # GValue value = G_VALUE_INIT; 1020s # GParamSpec *pspec; 1020s # _ExtendedGDBusPropertyInfo *info; 1020s # GVariant *ret; 1020s # ret = NULL; 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1020s # g_assert (info != NULL); 1020s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1020s # if (pspec == NULL) 1020s # { 1020s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1020s # } 1020s # else 1020s # { 1020s # g_value_init (&value, pspec->value_type); 1020s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1020s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1020s # g_value_unset (&value); 1020s # } 1020s # return ret; 1020s # } 1020s # 1020s # static gboolean 1020s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1020s # GDBusConnection *connection G_GNUC_UNUSED, 1020s # const gchar *sender G_GNUC_UNUSED, 1020s # const gchar *object_path G_GNUC_UNUSED, 1020s # const gchar *interface_name G_GNUC_UNUSED, 1020s # const gchar *property_name, 1020s # GVariant *variant, 1020s # GError **error, 1020s # gpointer user_data) 1020s # { 1020s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1020s # GValue value = G_VALUE_INIT; 1020s # GParamSpec *pspec; 1020s # _ExtendedGDBusPropertyInfo *info; 1020s # gboolean ret; 1020s # ret = FALSE; 1020s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1020s # g_assert (info != NULL); 1020s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1020s # if (pspec == NULL) 1020s # { 1020s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1020s # } 1020s # else 1020s # { 1020s # if (info->use_gvariant) 1020s # g_value_set_variant (&value, variant); 1020s # else 1020s # g_dbus_gvariant_to_gvalue (variant, &value); 1020s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1020s # g_value_unset (&value); 1020s # ret = TRUE; 1020s # } 1020s # return ret; 1020s # } 1020s # 1020s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1020s # { 1020s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1020s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1020s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1020s # {NULL} 1020s # }; 1020s # 1020s # static GDBusInterfaceInfo * 1020s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1020s # { 1020s # return org_project_bar_frobnicator_interface_info (); 1020s # } 1020s # 1020s # static GDBusInterfaceVTable * 1020s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1020s # { 1020s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1020s # } 1020s # 1020s # static GVariant * 1020s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1020s # { 1020s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1020s # 1020s # GVariantBuilder builder; 1020s # guint n; 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1020s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1020s # #else 1020s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1020s # #endif 1020s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1020s # goto out; 1020s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1020s # { 1020s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1020s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1020s # { 1020s # GVariant *value; 1020s # 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); 1020s # if (value != NULL) 1020s # { 1020s # g_variant_take_ref (value); 1020s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1020s # g_variant_unref (value); 1020s # } 1020s # } 1020s # } 1020s # out: 1020s # return g_variant_builder_end (&builder); 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1020s # { 1020s # } 1020s # 1020s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1020s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1020s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1020s # 1020s # #else 1020s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1020s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1020s # 1020s # #endif 1020s # static void 1020s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1020s # { 1020s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1020s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1020s # if (skeleton->priv->changed_properties_idle_source != NULL) 1020s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1020s # g_main_context_unref (skeleton->priv->context); 1020s # g_mutex_clear (&skeleton->priv->lock); 1020s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1020s # { 1020s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1020s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1020s # #else 1020s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1020s # #endif 1020s # 1020s # g_mutex_init (&skeleton->priv->lock); 1020s # skeleton->priv->context = g_main_context_ref_thread_default (); 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1020s # { 1020s # GObjectClass *gobject_class; 1020s # GDBusInterfaceSkeletonClass *skeleton_class; 1020s # 1020s # gobject_class = G_OBJECT_CLASS (klass); 1020s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1020s # 1020s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1020s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1020s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1020s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1020s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1020s # 1020s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1020s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1020s # #endif 1020s # } 1020s # 1020s # static void 1020s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1020s # { 1020s # } 1020s # 1020s # /** 1020s # * org_project_bar_frobnicator_skeleton_new: 1020s # * 1020s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1020s # * 1020s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1020s # */ 1020s # OrgProjectBarFrobnicator * 1020s # org_project_bar_frobnicator_skeleton_new (void) 1020s # { 1020s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1020s # } 1020s # Error: 1020s # 1020s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpooctb1pv/tmpvsyj3em42.xml', '/tmp/tmpooctb1pv/tmpb8fpvmwy1.xml', '--output', '-', '--body'] 1020s # Return code: 0 1020s # Output: 1020s # /* 1020s # * This file is generated by gdbus-codegen, do not modify it. 1020s # * 1020s # * The license of this code is the same as for the D-Bus interface description 1020s # * it was derived from. Note that it links to GLib, so must comply with the 1020s # * LGPL linking clauses. 1020s # */ 1020s # 1020s # #ifdef HAVE_CONFIG_H 1020s # # include "config.h" 1020s # #endif 1020s # 1020s # #include 1020s # #ifdef G_OS_UNIX 1020s # # include 1020s # #endif 1020s # 1020s # #ifdef G_ENABLE_DEBUG 1020s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1020s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1020s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1020s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1020s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1020s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1020s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1020s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1020s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1020s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1020s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1020s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1020s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1020s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1020s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1020s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1020s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1020s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1020s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1020s # #else /* !G_ENABLE_DEBUG */ 1020s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1020s # * Do not access GValues directly in your code. Instead, use the 1020s # * g_value_get_*() functions 1020s # */ 1020s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1020s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1020s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1020s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1020s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1020s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1020s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1020s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1020s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1020s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1020s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1020s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1020s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1020s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1020s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1020s # #endif /* !G_ENABLE_DEBUG */ 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusArgInfo parent_struct; 1020s # gboolean use_gvariant; 1020s # } _ExtendedGDBusArgInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusMethodInfo parent_struct; 1020s # const gchar *signal_name; 1020s # gboolean pass_fdlist; 1020s # } _ExtendedGDBusMethodInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusSignalInfo parent_struct; 1020s # const gchar *signal_name; 1020s # } _ExtendedGDBusSignalInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusPropertyInfo parent_struct; 1020s # const gchar *hyphen_name; 1020s # guint use_gvariant : 1; 1020s # guint emits_changed_signal : 1; 1020s # } _ExtendedGDBusPropertyInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # GDBusInterfaceInfo parent_struct; 1020s # const gchar *hyphen_name; 1020s # } _ExtendedGDBusInterfaceInfo; 1020s # 1020s # typedef struct 1020s # { 1020s # const _ExtendedGDBusPropertyInfo *info; 1020s # guint prop_id; 1020s # GValue orig_value; /* the value before the change */ 1020s # } ChangedProperty; 1020s # 1020s # static void 1020s # _changed_property_free (ChangedProperty *data) 1020s # { 1020s # g_value_unset (&data->orig_value); 1020s # g_free (data); 1020s # } 1020s # 1020s # static gboolean 1020s # _g_strv_equal0 (gchar **a, gchar **b) 1020s # { 1020s # gboolean ret = FALSE; 1020s # guint n; 1020s # if (a == NULL && b == NULL) 1020s # { 1020s # ret = TRUE; 1020s # goto out; 1020s # } 1020s # if (a == NULL || b == NULL) 1020s # goto out; 1020s # if (g_strv_length (a) != g_strv_length (b)) 1020s # goto out; 1020s # for (n = 0; a[n] != NULL; n++) 1020s # if (g_strcmp0 (a[n], b[n]) != 0) 1020s # goto out; 1020s # ret = TRUE; 1020s # out: 1020s # return ret; 1020s # } 1020s # 1020s # static gboolean 1020s # _g_variant_equal0 (GVariant *a, GVariant *b) 1020s # { 1020s # gboolean ret = FALSE; 1020s # if (a == NULL && b == NULL) 1020s # { 1020s # ret = TRUE; 1020s # goto out; 1020s # } 1020s # if (a == NULL || b == NULL) 1020s # goto out; 1020s # ret = g_variant_equal (a, b); 1020s # out: 1020s # return ret; 1020s # } 1020s # 1020s # G_GNUC_UNUSED static gboolean 1020s # _g_value_equal (const GValue *a, const GValue *b) 1020s # { 1020s # gboolean ret = FALSE; 1020s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1020s # switch (G_VALUE_TYPE (a)) 1020s # { 1020s # case G_TYPE_BOOLEAN: 1020s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1020s # break; 1020s # case G_TYPE_UCHAR: 1020s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1020s # break; 1020s # case G_TYPE_INT: 1020s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1020s # break; 1020s # case G_TYPE_UINT: 1020s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1020s # break; 1020s # case G_TYPE_INT64: 1020s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1020s # break; 1020s # case G_TYPE_UINT64: 1020s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1020s # break; 1020s # case G_TYPE_DOUBLE: 1020s # { 1020s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1020s # gdouble da = g_value_get_double (a); 1020s # gdouble db = g_value_get_double (b); 1020s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1020s # } 1020s # break; 1020s # case G_TYPE_STRING: 1020s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1020s # break; 1020s # case G_TYPE_VARIANT: 1020s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1020s # break; 1020s # default: 1020s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1020s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1020s # else 1020s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1020s # break; 1020s # } 1020s # return ret; 1020s # } 1020s # 1020s # static void 1020s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1020s # GClosure *closure, 1020s # GValue *return_value, 1020s # unsigned int n_param_values, 1020s # const GValue *param_values, 1020s # void *invocation_hint G_GNUC_UNUSED, 1020s # void *marshal_data) 1020s # { 1020s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1020s # (void *data1, 1020s # GDBusMethodInvocation *arg_method_invocation, 1020s # void *data2); 1020s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1020s # GCClosure *cc = (GCClosure*) closure; 1020s # void *data1, *data2; 1020s # gboolean v_return; 1020s # 1020s # g_return_if_fail (return_value != NULL); 1020s # g_return_if_fail (n_param_values == 2); 1020s # 1020s # if (G_CCLOSURE_SWAP_DATA (closure)) 1020s # { 1020s # data1 = closure->data; 1020s # data2 = g_value_peek_pointer (param_values + 0); 1020s # } 1020s # else 1020s # { 1020s # data1 = g_value_peek_pointer (param_values + 0); 1020s # data2 = closure->data; 1020s # } 1020s # 1020s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1020s # (marshal_data ? marshal_data : cc->callback); 1020s # 1020s # v_return = 1020s # callback (data1, 1020s # g_marshal_value_peek_object (param_values + 1), 1020s # data2); 1020s # 1020s # g_value_set_boolean (return_value, v_return); 1020s # } 1020s # 1020s # /* ------------------------------------------------------------------------ 1020s # * Code for interface com.acme.Coyote 1020s # * ------------------------------------------------------------------------ 1020s # */ 1020s # 1020s # /** 1020s # * SECTION:ComAcmeCoyote 1020s # * @title: ComAcmeCoyote 1020s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1020s # * 1020s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1020s # */ 1020s # 1020s # enum 1020s # { 1020s # _COM_ACME_COYOTE_SURPRISED, 1020s # }; 1020s # 1020s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1020s # 1020s # /* ---- Introspection data for com.acme.Coyote ---- */ 1020s # 1020s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Run", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-run", 1020s # FALSE 1020s # }; 1020s # 1020s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Sleep", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-sleep", 1020s # FALSE 1020s # }; 1020s # 1020s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Attack", 1020s # NULL, 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "handle-attack", 1020s # FALSE 1020s # }; 1020s # 1020s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1020s # { 1020s # &_com_acme_coyote_method_info_run.parent_struct, 1020s # &_com_acme_coyote_method_info_sleep.parent_struct, 1020s # &_com_acme_coyote_method_info_attack.parent_struct, 1020s # NULL 1020s # }; 1020s # 1020s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Surprised", 1020s # NULL, 1020s # NULL 1020s # }, 1020s # "surprised" 1020s # }; 1020s # 1020s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1020s # { 1020s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1020s # NULL 1020s # }; 1020s # 1020s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1020s # { 1020s # { 1020s # -1, 1020s # (gchar *) "Mood", 1020s # (gchar *) "s", 1020s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1020s # NULL 1020s # }, 1020s # "mood", 1021s # FALSE, 1021s # TRUE 1021s # }; 1021s # 1021s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1021s # { 1021s # &_com_acme_coyote_property_info_mood.parent_struct, 1021s # NULL 1021s # }; 1021s # 1021s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1021s # { 1021s # { 1021s # -1, 1021s # (gchar *) "com.acme.Coyote", 1021s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1021s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1021s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1021s # NULL 1021s # }, 1021s # "com-acme-coyote", 1021s # }; 1021s # 1021s # 1021s # /** 1021s # * com_acme_coyote_interface_info: 1021s # * 1021s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1021s # * 1021s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1021s # */ 1021s # GDBusInterfaceInfo * 1021s # com_acme_coyote_interface_info (void) 1021s # { 1021s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_override_properties: 1021s # * @klass: The class structure for a #GObject derived class. 1021s # * @property_id_begin: The property id to assign to the first overridden property. 1021s # * 1021s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1021s # * The properties are overridden in the order they are defined. 1021s # * 1021s # * Returns: The last property id. 1021s # */ 1021s # guint 1021s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1021s # { 1021s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1021s # return property_id_begin - 1; 1021s # } 1021s # 1021s # 1021s # inline static void 1021s # com_acme_coyote_signal_marshal_surprised ( 1021s # GClosure *closure, 1021s # GValue *return_value, 1021s # unsigned int n_param_values, 1021s # const GValue *param_values, 1021s # void *invocation_hint, 1021s # void *marshal_data) 1021s # { 1021s # g_cclosure_marshal_VOID__VOID (closure, 1021s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1021s # } 1021s # 1021s # inline static void 1021s # com_acme_coyote_method_marshal_run ( 1021s # GClosure *closure, 1021s # GValue *return_value, 1021s # unsigned int n_param_values, 1021s # const GValue *param_values, 1021s # void *invocation_hint, 1021s # void *marshal_data) 1021s # { 1021s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1021s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1021s # } 1021s # 1021s # inline static void 1021s # com_acme_coyote_method_marshal_sleep ( 1021s # GClosure *closure, 1021s # GValue *return_value, 1021s # unsigned int n_param_values, 1021s # const GValue *param_values, 1021s # void *invocation_hint, 1021s # void *marshal_data) 1021s # { 1021s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1021s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1021s # } 1021s # 1021s # inline static void 1021s # com_acme_coyote_method_marshal_attack ( 1021s # GClosure *closure, 1021s # GValue *return_value, 1021s # unsigned int n_param_values, 1021s # const GValue *param_values, 1021s # void *invocation_hint, 1021s # void *marshal_data) 1021s # { 1021s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1021s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1021s # } 1021s # 1021s # 1021s # /** 1021s # * ComAcmeCoyote: 1021s # * 1021s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1021s # */ 1021s # 1021s # /** 1021s # * ComAcmeCoyoteIface: 1021s # * @parent_iface: The parent interface. 1021s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1021s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1021s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1021s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1021s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1021s # * 1021s # * Virtual table for the D-Bus interface com.acme.Coyote. 1021s # */ 1021s # 1021s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1021s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1021s # 1021s # static void 1021s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1021s # { 1021s # /* GObject signals for incoming D-Bus method calls: */ 1021s # /** 1021s # * ComAcmeCoyote::handle-run: 1021s # * @object: A #ComAcmeCoyote. 1021s # * @invocation: A #GDBusMethodInvocation. 1021s # * 1021s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1021s # * 1021s # * 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. 1021s # * 1021s # * 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. 1021s # */ 1021s # g_signal_new ("handle-run", 1021s # G_TYPE_FROM_INTERFACE (iface), 1021s # G_SIGNAL_RUN_LAST, 1021s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1021s # g_signal_accumulator_true_handled, 1021s # NULL, 1021s # com_acme_coyote_method_marshal_run, 1021s # G_TYPE_BOOLEAN, 1021s # 1, 1021s # G_TYPE_DBUS_METHOD_INVOCATION); 1021s # 1021s # /** 1021s # * ComAcmeCoyote::handle-sleep: 1021s # * @object: A #ComAcmeCoyote. 1021s # * @invocation: A #GDBusMethodInvocation. 1021s # * 1021s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1021s # * 1021s # * 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. 1021s # * 1021s # * 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. 1021s # */ 1021s # g_signal_new ("handle-sleep", 1021s # G_TYPE_FROM_INTERFACE (iface), 1021s # G_SIGNAL_RUN_LAST, 1021s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1021s # g_signal_accumulator_true_handled, 1021s # NULL, 1021s # com_acme_coyote_method_marshal_sleep, 1021s # G_TYPE_BOOLEAN, 1021s # 1, 1021s # G_TYPE_DBUS_METHOD_INVOCATION); 1021s # 1021s # /** 1021s # * ComAcmeCoyote::handle-attack: 1021s # * @object: A #ComAcmeCoyote. 1021s # * @invocation: A #GDBusMethodInvocation. 1021s # * 1021s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1021s # * 1021s # * 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. 1021s # * 1021s # * 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. 1021s # */ 1021s # g_signal_new ("handle-attack", 1021s # G_TYPE_FROM_INTERFACE (iface), 1021s # G_SIGNAL_RUN_LAST, 1021s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1021s # g_signal_accumulator_true_handled, 1021s # NULL, 1021s # com_acme_coyote_method_marshal_attack, 1021s # G_TYPE_BOOLEAN, 1021s # 1, 1021s # G_TYPE_DBUS_METHOD_INVOCATION); 1021s # 1021s # /* GObject signals for received D-Bus signals: */ 1021s # /** 1021s # * ComAcmeCoyote::surprised: 1021s # * @object: A #ComAcmeCoyote. 1021s # * 1021s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1021s # * 1021s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1021s # */ 1021s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1021s # g_signal_new ("surprised", 1021s # G_TYPE_FROM_INTERFACE (iface), 1021s # G_SIGNAL_RUN_LAST, 1021s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1021s # NULL, 1021s # NULL, 1021s # com_acme_coyote_signal_marshal_surprised, 1021s # G_TYPE_NONE, 1021s # 0); 1021s # 1021s # /* GObject properties for D-Bus properties: */ 1021s # /** 1021s # * ComAcmeCoyote:mood: 1021s # * 1021s # * Represents the D-Bus property "Mood". 1021s # * 1021s # * 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. 1021s # */ 1021s # g_object_interface_install_property (iface, 1021s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_get_mood: (skip) 1021s # * @object: A #ComAcmeCoyote. 1021s # * 1021s # * Gets the value of the "Mood" D-Bus property. 1021s # * 1021s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1021s # * 1021s # * 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. 1021s # * 1021s # * 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. 1021s # */ 1021s # const gchar * 1021s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1021s # { 1021s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1021s # 1021s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_dup_mood: (skip) 1021s # * @object: A #ComAcmeCoyote. 1021s # * 1021s # * Gets a copy of the "Mood" D-Bus property. 1021s # * 1021s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1021s # * 1021s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1021s # */ 1021s # gchar * 1021s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1021s # { 1021s # gchar *value; 1021s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1021s # return value; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_set_mood: (skip) 1021s # * @object: A #ComAcmeCoyote. 1021s # * @value: The value to set. 1021s # * 1021s # * Sets the "Mood" D-Bus property to @value. 1021s # * 1021s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1021s # */ 1021s # void 1021s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1021s # { 1021s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_emit_surprised: 1021s # * @object: A #ComAcmeCoyote. 1021s # * 1021s # * Emits the "Surprised" D-Bus signal. 1021s # */ 1021s # void 1021s # com_acme_coyote_emit_surprised ( 1021s # ComAcmeCoyote *object) 1021s # { 1021s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_run: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1021s # * 1021s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1021s # */ 1021s # void 1021s # com_acme_coyote_call_run ( 1021s # ComAcmeCoyote *proxy, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1021s # "Run", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # callback, 1021s # user_data); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_run_finish: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Finishes an operation started with com_acme_coyote_call_run(). 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # com_acme_coyote_call_run_finish ( 1021s # ComAcmeCoyote *proxy, 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_run_sync: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1021s # * 1021s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # com_acme_coyote_call_run_sync ( 1021s # ComAcmeCoyote *proxy, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1021s # "Run", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_sleep: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1021s # * 1021s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1021s # */ 1021s # void 1021s # com_acme_coyote_call_sleep ( 1021s # ComAcmeCoyote *proxy, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1021s # "Sleep", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # callback, 1021s # user_data); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_sleep_finish: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # com_acme_coyote_call_sleep_finish ( 1021s # ComAcmeCoyote *proxy, 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_sleep_sync: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1021s # * 1021s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # com_acme_coyote_call_sleep_sync ( 1021s # ComAcmeCoyote *proxy, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1021s # "Sleep", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_attack: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1021s # * 1021s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1021s # */ 1021s # void 1021s # com_acme_coyote_call_attack ( 1021s # ComAcmeCoyote *proxy, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1021s # "Attack", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # callback, 1021s # user_data); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_attack_finish: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Finishes an operation started with com_acme_coyote_call_attack(). 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # com_acme_coyote_call_attack_finish ( 1021s # ComAcmeCoyote *proxy, 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_call_attack_sync: 1021s # * @proxy: A #ComAcmeCoyoteProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1021s # * 1021s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # com_acme_coyote_call_attack_sync ( 1021s # ComAcmeCoyote *proxy, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1021s # "Attack", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_complete_run: 1021s # * @object: A #ComAcmeCoyote. 1021s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1021s # * 1021s # * 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. 1021s # * 1021s # * This method will free @invocation, you cannot use it afterwards. 1021s # */ 1021s # void 1021s # com_acme_coyote_complete_run ( 1021s # ComAcmeCoyote *object G_GNUC_UNUSED, 1021s # GDBusMethodInvocation *invocation) 1021s # { 1021s # g_dbus_method_invocation_return_value (invocation, 1021s # g_variant_new ("()")); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_complete_sleep: 1021s # * @object: A #ComAcmeCoyote. 1021s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1021s # * 1021s # * 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. 1021s # * 1021s # * This method will free @invocation, you cannot use it afterwards. 1021s # */ 1021s # void 1021s # com_acme_coyote_complete_sleep ( 1021s # ComAcmeCoyote *object G_GNUC_UNUSED, 1021s # GDBusMethodInvocation *invocation) 1021s # { 1021s # g_dbus_method_invocation_return_value (invocation, 1021s # g_variant_new ("()")); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_complete_attack: 1021s # * @object: A #ComAcmeCoyote. 1021s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1021s # * 1021s # * 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. 1021s # * 1021s # * This method will free @invocation, you cannot use it afterwards. 1021s # */ 1021s # void 1021s # com_acme_coyote_complete_attack ( 1021s # ComAcmeCoyote *object G_GNUC_UNUSED, 1021s # GDBusMethodInvocation *invocation) 1021s # { 1021s # g_dbus_method_invocation_return_value (invocation, 1021s # g_variant_new ("()")); 1021s # } 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # 1021s # /** 1021s # * ComAcmeCoyoteProxy: 1021s # * 1021s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1021s # */ 1021s # 1021s # /** 1021s # * ComAcmeCoyoteProxyClass: 1021s # * @parent_class: The parent class. 1021s # * 1021s # * Class structure for #ComAcmeCoyoteProxy. 1021s # */ 1021s # 1021s # struct _ComAcmeCoyoteProxyPrivate 1021s # { 1021s # GData *qdata; 1021s # }; 1021s # 1021s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1021s # 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1021s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1021s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1021s # 1021s # #else 1021s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1021s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1021s # 1021s # #endif 1021s # static void 1021s # com_acme_coyote_proxy_finalize (GObject *object) 1021s # { 1021s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1021s # g_datalist_clear (&proxy->priv->qdata); 1021s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_get_property (GObject *object, 1021s # guint prop_id, 1021s # GValue *value, 1021s # GParamSpec *pspec G_GNUC_UNUSED) 1021s # { 1021s # const _ExtendedGDBusPropertyInfo *info; 1021s # GVariant *variant; 1021s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1021s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1021s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1021s # if (info->use_gvariant) 1021s # { 1021s # g_value_set_variant (value, variant); 1021s # } 1021s # else 1021s # { 1021s # if (variant != NULL) 1021s # g_dbus_gvariant_to_gvalue (variant, value); 1021s # } 1021s # if (variant != NULL) 1021s # g_variant_unref (variant); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1021s # GAsyncResult *res, 1021s # gpointer user_data) 1021s # { 1021s # const _ExtendedGDBusPropertyInfo *info = user_data; 1021s # GError *error; 1021s # GVariant *_ret; 1021s # error = NULL; 1021s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1021s # if (!_ret) 1021s # { 1021s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1021s # info->parent_struct.name, 1021s # error->message, g_quark_to_string (error->domain), error->code); 1021s # g_error_free (error); 1021s # } 1021s # else 1021s # { 1021s # g_variant_unref (_ret); 1021s # } 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_set_property (GObject *object, 1021s # guint prop_id, 1021s # const GValue *value, 1021s # GParamSpec *pspec G_GNUC_UNUSED) 1021s # { 1021s # const _ExtendedGDBusPropertyInfo *info; 1021s # GVariant *variant; 1021s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1021s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1021s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1021s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1021s # "org.freedesktop.DBus.Properties.Set", 1021s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1021s # g_variant_unref (variant); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1021s # const gchar *sender_name G_GNUC_UNUSED, 1021s # const gchar *signal_name, 1021s # GVariant *parameters) 1021s # { 1021s # _ExtendedGDBusSignalInfo *info; 1021s # GVariantIter iter; 1021s # GVariant *child; 1021s # GValue *paramv; 1021s # gsize num_params; 1021s # gsize n; 1021s # guint signal_id; 1021s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1021s # if (info == NULL) 1021s # return; 1021s # num_params = g_variant_n_children (parameters); 1021s # paramv = g_new0 (GValue, num_params + 1); 1021s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1021s # g_value_set_object (¶mv[0], proxy); 1021s # g_variant_iter_init (&iter, parameters); 1021s # n = 1; 1021s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1021s # { 1021s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1021s # if (arg_info->use_gvariant) 1021s # { 1021s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1021s # g_value_set_variant (¶mv[n], child); 1021s # n++; 1021s # } 1021s # else 1021s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1021s # g_variant_unref (child); 1021s # } 1021s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1021s # g_signal_emitv (paramv, signal_id, 0, NULL); 1021s # for (n = 0; n < num_params + 1; n++) 1021s # g_value_unset (¶mv[n]); 1021s # g_free (paramv); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1021s # GVariant *changed_properties, 1021s # const gchar *const *invalidated_properties) 1021s # { 1021s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1021s # guint n; 1021s # const gchar *key; 1021s # GVariantIter *iter; 1021s # _ExtendedGDBusPropertyInfo *info; 1021s # g_variant_get (changed_properties, "a{sv}", &iter); 1021s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1021s # { 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1021s # g_datalist_remove_data (&proxy->priv->qdata, key); 1021s # if (info != NULL) 1021s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1021s # } 1021s # g_variant_iter_free (iter); 1021s # for (n = 0; invalidated_properties[n] != NULL; n++) 1021s # { 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1021s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1021s # if (info != NULL) 1021s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1021s # } 1021s # } 1021s # 1021s # static const gchar * 1021s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1021s # { 1021s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1021s # GVariant *variant; 1021s # const gchar *value = NULL; 1021s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1021s # if (variant != NULL) 1021s # { 1021s # value = g_variant_get_string (variant, NULL); 1021s # g_variant_unref (variant); 1021s # } 1021s # return value; 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1021s # { 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1021s # #else 1021s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1021s # #endif 1021s # 1021s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1021s # { 1021s # GObjectClass *gobject_class; 1021s # GDBusProxyClass *proxy_class; 1021s # 1021s # gobject_class = G_OBJECT_CLASS (klass); 1021s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1021s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1021s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1021s # 1021s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1021s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1021s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1021s # 1021s # com_acme_coyote_override_properties (gobject_class, 1); 1021s # 1021s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1021s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1021s # #endif 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1021s # { 1021s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_proxy_new: 1021s # * @connection: A #GDBusConnection. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1021s # * 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1021s # * 1021s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1021s # */ 1021s # void 1021s # com_acme_coyote_proxy_new ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # 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); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_proxy_new_finish: 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1021s # * 1021s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # ComAcmeCoyote * 1021s # com_acme_coyote_proxy_new_finish ( 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GObject *ret; 1021s # GObject *source_object; 1021s # source_object = g_async_result_get_source_object (res); 1021s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1021s # g_object_unref (source_object); 1021s # if (ret != NULL) 1021s # return COM_ACME_COYOTE (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_proxy_new_sync: 1021s # * @connection: A #GDBusConnection. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1021s # * 1021s # * The calling thread is blocked until a reply is received. 1021s # * 1021s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1021s # * 1021s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # ComAcmeCoyote * 1021s # com_acme_coyote_proxy_new_sync ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GInitable *ret; 1021s # 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); 1021s # if (ret != NULL) 1021s # return COM_ACME_COYOTE (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # 1021s # /** 1021s # * com_acme_coyote_proxy_new_for_bus: 1021s # * @bus_type: A #GBusType. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: A bus name (well-known or unique). 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1021s # * 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1021s # * 1021s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1021s # */ 1021s # void 1021s # com_acme_coyote_proxy_new_for_bus ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # 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); 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_proxy_new_for_bus_finish: 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1021s # * 1021s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # ComAcmeCoyote * 1021s # com_acme_coyote_proxy_new_for_bus_finish ( 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GObject *ret; 1021s # GObject *source_object; 1021s # source_object = g_async_result_get_source_object (res); 1021s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1021s # g_object_unref (source_object); 1021s # if (ret != NULL) 1021s # return COM_ACME_COYOTE (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_proxy_new_for_bus_sync: 1021s # * @bus_type: A #GBusType. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: A bus name (well-known or unique). 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1021s # * 1021s # * The calling thread is blocked until a reply is received. 1021s # * 1021s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1021s # * 1021s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # ComAcmeCoyote * 1021s # com_acme_coyote_proxy_new_for_bus_sync ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GInitable *ret; 1021s # 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); 1021s # if (ret != NULL) 1021s # return COM_ACME_COYOTE (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # 1021s # /** 1021s # * ComAcmeCoyoteSkeleton: 1021s # * 1021s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1021s # */ 1021s # 1021s # /** 1021s # * ComAcmeCoyoteSkeletonClass: 1021s # * @parent_class: The parent class. 1021s # * 1021s # * Class structure for #ComAcmeCoyoteSkeleton. 1021s # */ 1021s # 1021s # struct _ComAcmeCoyoteSkeletonPrivate 1021s # { 1021s # GValue *properties; 1021s # GList *changed_properties; 1021s # GSource *changed_properties_idle_source; 1021s # GMainContext *context; 1021s # GMutex lock; 1021s # }; 1021s # 1021s # static void 1021s # _com_acme_coyote_skeleton_handle_method_call ( 1021s # GDBusConnection *connection G_GNUC_UNUSED, 1021s # const gchar *sender G_GNUC_UNUSED, 1021s # const gchar *object_path G_GNUC_UNUSED, 1021s # const gchar *interface_name, 1021s # const gchar *method_name, 1021s # GVariant *parameters, 1021s # GDBusMethodInvocation *invocation, 1021s # gpointer user_data) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1021s # _ExtendedGDBusMethodInfo *info; 1021s # GVariantIter iter; 1021s # GVariant *child; 1021s # GValue *paramv; 1021s # gsize num_params; 1021s # guint num_extra; 1021s # gsize n; 1021s # guint signal_id; 1021s # GValue return_value = G_VALUE_INIT; 1021s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1021s # g_assert (info != NULL); 1021s # num_params = g_variant_n_children (parameters); 1021s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1021s # n = 0; 1021s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1021s # g_value_set_object (¶mv[n++], skeleton); 1021s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1021s # g_value_set_object (¶mv[n++], invocation); 1021s # if (info->pass_fdlist) 1021s # { 1021s # #ifdef G_OS_UNIX 1021s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1021s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1021s # #else 1021s # g_assert_not_reached (); 1021s # #endif 1021s # } 1021s # g_variant_iter_init (&iter, parameters); 1021s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1021s # { 1021s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1021s # if (arg_info->use_gvariant) 1021s # { 1021s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1021s # g_value_set_variant (¶mv[n], child); 1021s # n++; 1021s # } 1021s # else 1021s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1021s # g_variant_unref (child); 1021s # } 1021s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1021s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1021s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1021s # if (!g_value_get_boolean (&return_value)) 1021s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1021s # g_value_unset (&return_value); 1021s # for (n = 0; n < num_params + num_extra; n++) 1021s # g_value_unset (¶mv[n]); 1021s # g_free (paramv); 1021s # } 1021s # 1021s # static GVariant * 1021s # _com_acme_coyote_skeleton_handle_get_property ( 1021s # GDBusConnection *connection G_GNUC_UNUSED, 1021s # const gchar *sender G_GNUC_UNUSED, 1021s # const gchar *object_path G_GNUC_UNUSED, 1021s # const gchar *interface_name G_GNUC_UNUSED, 1021s # const gchar *property_name, 1021s # GError **error, 1021s # gpointer user_data) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1021s # GValue value = G_VALUE_INIT; 1021s # GParamSpec *pspec; 1021s # _ExtendedGDBusPropertyInfo *info; 1021s # GVariant *ret; 1021s # ret = NULL; 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1021s # g_assert (info != NULL); 1021s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1021s # if (pspec == NULL) 1021s # { 1021s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1021s # } 1021s # else 1021s # { 1021s # g_value_init (&value, pspec->value_type); 1021s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1021s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1021s # g_value_unset (&value); 1021s # } 1021s # return ret; 1021s # } 1021s # 1021s # static gboolean 1021s # _com_acme_coyote_skeleton_handle_set_property ( 1021s # GDBusConnection *connection G_GNUC_UNUSED, 1021s # const gchar *sender G_GNUC_UNUSED, 1021s # const gchar *object_path G_GNUC_UNUSED, 1021s # const gchar *interface_name G_GNUC_UNUSED, 1021s # const gchar *property_name, 1021s # GVariant *variant, 1021s # GError **error, 1021s # gpointer user_data) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1021s # GValue value = G_VALUE_INIT; 1021s # GParamSpec *pspec; 1021s # _ExtendedGDBusPropertyInfo *info; 1021s # gboolean ret; 1021s # ret = FALSE; 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1021s # g_assert (info != NULL); 1021s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1021s # if (pspec == NULL) 1021s # { 1021s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1021s # } 1021s # else 1021s # { 1021s # if (info->use_gvariant) 1021s # g_value_set_variant (&value, variant); 1021s # else 1021s # g_dbus_gvariant_to_gvalue (variant, &value); 1021s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1021s # g_value_unset (&value); 1021s # ret = TRUE; 1021s # } 1021s # return ret; 1021s # } 1021s # 1021s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1021s # { 1021s # _com_acme_coyote_skeleton_handle_method_call, 1021s # _com_acme_coyote_skeleton_handle_get_property, 1021s # _com_acme_coyote_skeleton_handle_set_property, 1021s # {NULL} 1021s # }; 1021s # 1021s # static GDBusInterfaceInfo * 1021s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1021s # { 1021s # return com_acme_coyote_interface_info (); 1021s # } 1021s # 1021s # static GDBusInterfaceVTable * 1021s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1021s # { 1021s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1021s # } 1021s # 1021s # static GVariant * 1021s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1021s # 1021s # GVariantBuilder builder; 1021s # guint n; 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1021s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1021s # #else 1021s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1021s # #endif 1021s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1021s # goto out; 1021s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1021s # { 1021s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1021s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1021s # { 1021s # GVariant *value; 1021s # 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); 1021s # if (value != NULL) 1021s # { 1021s # g_variant_take_ref (value); 1021s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1021s # g_variant_unref (value); 1021s # } 1021s # } 1021s # } 1021s # out: 1021s # return g_variant_builder_end (&builder); 1021s # } 1021s # 1021s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1021s # gboolean emit_changed = FALSE; 1021s # 1021s # g_mutex_lock (&skeleton->priv->lock); 1021s # if (skeleton->priv->changed_properties_idle_source != NULL) 1021s # { 1021s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1021s # skeleton->priv->changed_properties_idle_source = NULL; 1021s # emit_changed = TRUE; 1021s # } 1021s # g_mutex_unlock (&skeleton->priv->lock); 1021s # 1021s # if (emit_changed) 1021s # _com_acme_coyote_emit_changed (skeleton); 1021s # } 1021s # 1021s # static void 1021s # _com_acme_coyote_on_signal_surprised ( 1021s # ComAcmeCoyote *object) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1021s # 1021s # GList *connections, *l; 1021s # GVariant *signal_variant; 1021s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1021s # 1021s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1021s # for (l = connections; l != NULL; l = l->next) 1021s # { 1021s # GDBusConnection *connection = l->data; 1021s # g_dbus_connection_emit_signal (connection, 1021s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1021s # signal_variant, NULL); 1021s # } 1021s # g_variant_unref (signal_variant); 1021s # g_list_free_full (connections, g_object_unref); 1021s # } 1021s # 1021s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1021s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1021s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1021s # 1021s # #else 1021s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1021s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1021s # 1021s # #endif 1021s # static void 1021s # com_acme_coyote_skeleton_finalize (GObject *object) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1021s # guint n; 1021s # for (n = 0; n < 1; n++) 1021s # g_value_unset (&skeleton->priv->properties[n]); 1021s # g_free (skeleton->priv->properties); 1021s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1021s # if (skeleton->priv->changed_properties_idle_source != NULL) 1021s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1021s # g_main_context_unref (skeleton->priv->context); 1021s # g_mutex_clear (&skeleton->priv->lock); 1021s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_get_property (GObject *object, 1021s # guint prop_id, 1021s # GValue *value, 1021s # GParamSpec *pspec G_GNUC_UNUSED) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1021s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1021s # g_mutex_lock (&skeleton->priv->lock); 1021s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1021s # g_mutex_unlock (&skeleton->priv->lock); 1021s # } 1021s # 1021s # static gboolean 1021s # _com_acme_coyote_emit_changed (gpointer user_data) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1021s # GList *l; 1021s # GVariantBuilder builder; 1021s # GVariantBuilder invalidated_builder; 1021s # guint num_changes; 1021s # 1021s # g_mutex_lock (&skeleton->priv->lock); 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1021s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1021s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1021s # #else 1021s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1021s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1021s # #endif 1021s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1021s # { 1021s # ChangedProperty *cp = l->data; 1021s # GVariant *variant; 1021s # const GValue *cur_value; 1021s # 1021s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1021s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1021s # { 1021s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1021s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1021s # g_variant_unref (variant); 1021s # num_changes++; 1021s # } 1021s # } 1021s # if (num_changes > 0) 1021s # { 1021s # GList *connections, *ll; 1021s # GVariant *signal_variant; 1021s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1021s # &builder, &invalidated_builder)); 1021s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1021s # for (ll = connections; ll != NULL; ll = ll->next) 1021s # { 1021s # GDBusConnection *connection = ll->data; 1021s # 1021s # g_dbus_connection_emit_signal (connection, 1021s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1021s # "org.freedesktop.DBus.Properties", 1021s # "PropertiesChanged", 1021s # signal_variant, 1021s # NULL); 1021s # } 1021s # g_variant_unref (signal_variant); 1021s # g_list_free_full (connections, g_object_unref); 1021s # } 1021s # else 1021s # { 1021s # g_variant_builder_clear (&builder); 1021s # g_variant_builder_clear (&invalidated_builder); 1021s # } 1021s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1021s # skeleton->priv->changed_properties = NULL; 1021s # skeleton->priv->changed_properties_idle_source = NULL; 1021s # g_mutex_unlock (&skeleton->priv->lock); 1021s # return FALSE; 1021s # } 1021s # 1021s # static void 1021s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1021s # { 1021s # ChangedProperty *cp; 1021s # GList *l; 1021s # cp = NULL; 1021s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1021s # { 1021s # ChangedProperty *i_cp = l->data; 1021s # if (i_cp->info == info) 1021s # { 1021s # cp = i_cp; 1021s # break; 1021s # } 1021s # } 1021s # if (cp == NULL) 1021s # { 1021s # cp = g_new0 (ChangedProperty, 1); 1021s # cp->prop_id = prop_id; 1021s # cp->info = info; 1021s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1021s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1021s # g_value_copy (orig_value, &cp->orig_value); 1021s # } 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_notify (GObject *object, 1021s # GParamSpec *pspec G_GNUC_UNUSED) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1021s # g_mutex_lock (&skeleton->priv->lock); 1021s # if (skeleton->priv->changed_properties != NULL && 1021s # skeleton->priv->changed_properties_idle_source == NULL) 1021s # { 1021s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1021s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1021s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1021s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1021s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1021s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1021s # } 1021s # g_mutex_unlock (&skeleton->priv->lock); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_set_property (GObject *object, 1021s # guint prop_id, 1021s # const GValue *value, 1021s # GParamSpec *pspec) 1021s # { 1021s # const _ExtendedGDBusPropertyInfo *info; 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1021s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1021s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1021s # g_mutex_lock (&skeleton->priv->lock); 1021s # g_object_freeze_notify (object); 1021s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1021s # { 1021s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1021s # info->emits_changed_signal) 1021s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1021s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1021s # g_object_notify_by_pspec (object, pspec); 1021s # } 1021s # g_mutex_unlock (&skeleton->priv->lock); 1021s # g_object_thaw_notify (object); 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1021s # { 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1021s # #else 1021s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1021s # #endif 1021s # 1021s # g_mutex_init (&skeleton->priv->lock); 1021s # skeleton->priv->context = g_main_context_ref_thread_default (); 1021s # skeleton->priv->properties = g_new0 (GValue, 1); 1021s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1021s # } 1021s # 1021s # static const gchar * 1021s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1021s # { 1021s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1021s # const gchar *value; 1021s # g_mutex_lock (&skeleton->priv->lock); 1021s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1021s # g_mutex_unlock (&skeleton->priv->lock); 1021s # return value; 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1021s # { 1021s # GObjectClass *gobject_class; 1021s # GDBusInterfaceSkeletonClass *skeleton_class; 1021s # 1021s # gobject_class = G_OBJECT_CLASS (klass); 1021s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1021s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1021s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1021s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1021s # 1021s # 1021s # com_acme_coyote_override_properties (gobject_class, 1); 1021s # 1021s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1021s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1021s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1021s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1021s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1021s # 1021s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1021s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1021s # #endif 1021s # } 1021s # 1021s # static void 1021s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1021s # { 1021s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1021s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1021s # } 1021s # 1021s # /** 1021s # * com_acme_coyote_skeleton_new: 1021s # * 1021s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1021s # * 1021s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1021s # */ 1021s # ComAcmeCoyote * 1021s # com_acme_coyote_skeleton_new (void) 1021s # { 1021s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1021s # } 1021s # 1021s # /* ------------------------------------------------------------------------ 1021s # * Code for interface org.project.Bar.Frobnicator 1021s # * ------------------------------------------------------------------------ 1021s # */ 1021s # 1021s # /** 1021s # * SECTION:OrgProjectBarFrobnicator 1021s # * @title: OrgProjectBarFrobnicator 1021s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1021s # * 1021s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1021s # */ 1021s # 1021s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1021s # 1021s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1021s # { 1021s # { 1021s # -1, 1021s # (gchar *) "RandomMethod", 1021s # NULL, 1021s # NULL, 1021s # NULL 1021s # }, 1021s # "handle-random-method", 1021s # FALSE 1021s # }; 1021s # 1021s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1021s # { 1021s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1021s # NULL 1021s # }; 1021s # 1021s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1021s # { 1021s # { 1021s # -1, 1021s # (gchar *) "org.project.Bar.Frobnicator", 1021s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1021s # NULL, 1021s # NULL, 1021s # NULL 1021s # }, 1021s # "org-project-bar-frobnicator", 1021s # }; 1021s # 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_interface_info: 1021s # * 1021s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1021s # * 1021s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1021s # */ 1021s # GDBusInterfaceInfo * 1021s # org_project_bar_frobnicator_interface_info (void) 1021s # { 1021s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_override_properties: 1021s # * @klass: The class structure for a #GObject derived class. 1021s # * @property_id_begin: The property id to assign to the first overridden property. 1021s # * 1021s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1021s # * The properties are overridden in the order they are defined. 1021s # * 1021s # * Returns: The last property id. 1021s # */ 1021s # guint 1021s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1021s # { 1021s # return property_id_begin - 1; 1021s # } 1021s # 1021s # 1021s # inline static void 1021s # org_project_bar_frobnicator_method_marshal_random_method ( 1021s # GClosure *closure, 1021s # GValue *return_value, 1021s # unsigned int n_param_values, 1021s # const GValue *param_values, 1021s # void *invocation_hint, 1021s # void *marshal_data) 1021s # { 1021s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1021s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1021s # } 1021s # 1021s # 1021s # /** 1021s # * OrgProjectBarFrobnicator: 1021s # * 1021s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1021s # */ 1021s # 1021s # /** 1021s # * OrgProjectBarFrobnicatorIface: 1021s # * @parent_iface: The parent interface. 1021s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1021s # * 1021s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1021s # */ 1021s # 1021s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1021s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1021s # { 1021s # /* GObject signals for incoming D-Bus method calls: */ 1021s # /** 1021s # * OrgProjectBarFrobnicator::handle-random-method: 1021s # * @object: A #OrgProjectBarFrobnicator. 1021s # * @invocation: A #GDBusMethodInvocation. 1021s # * 1021s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1021s # * 1021s # * 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. 1021s # * 1021s # * 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. 1021s # */ 1021s # g_signal_new ("handle-random-method", 1021s # G_TYPE_FROM_INTERFACE (iface), 1021s # G_SIGNAL_RUN_LAST, 1021s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1021s # g_signal_accumulator_true_handled, 1021s # NULL, 1021s # org_project_bar_frobnicator_method_marshal_random_method, 1021s # G_TYPE_BOOLEAN, 1021s # 1, 1021s # G_TYPE_DBUS_METHOD_INVOCATION); 1021s # 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_call_random_method: 1021s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1021s # * 1021s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1021s # */ 1021s # void 1021s # org_project_bar_frobnicator_call_random_method ( 1021s # OrgProjectBarFrobnicator *proxy, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1021s # "RandomMethod", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # callback, 1021s # user_data); 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_call_random_method_finish: 1021s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # org_project_bar_frobnicator_call_random_method_finish ( 1021s # OrgProjectBarFrobnicator *proxy, 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_call_random_method_sync: 1021s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL. 1021s # * 1021s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1021s # * 1021s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1021s # * 1021s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1021s # */ 1021s # gboolean 1021s # org_project_bar_frobnicator_call_random_method_sync ( 1021s # OrgProjectBarFrobnicator *proxy, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GVariant *_ret; 1021s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1021s # "RandomMethod", 1021s # g_variant_new ("()"), 1021s # G_DBUS_CALL_FLAGS_NONE, 1021s # -1, 1021s # cancellable, 1021s # error); 1021s # if (_ret == NULL) 1021s # goto _out; 1021s # g_variant_get (_ret, 1021s # "()"); 1021s # g_variant_unref (_ret); 1021s # _out: 1021s # return _ret != NULL; 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_complete_random_method: 1021s # * @object: A #OrgProjectBarFrobnicator. 1021s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1021s # * 1021s # * 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. 1021s # * 1021s # * This method will free @invocation, you cannot use it afterwards. 1021s # */ 1021s # void 1021s # org_project_bar_frobnicator_complete_random_method ( 1021s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1021s # GDBusMethodInvocation *invocation) 1021s # { 1021s # g_dbus_method_invocation_return_value (invocation, 1021s # g_variant_new ("()")); 1021s # } 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # 1021s # /** 1021s # * OrgProjectBarFrobnicatorProxy: 1021s # * 1021s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1021s # */ 1021s # 1021s # /** 1021s # * OrgProjectBarFrobnicatorProxyClass: 1021s # * @parent_class: The parent class. 1021s # * 1021s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1021s # */ 1021s # 1021s # struct _OrgProjectBarFrobnicatorProxyPrivate 1021s # { 1021s # GData *qdata; 1021s # }; 1021s # 1021s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1021s # 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1021s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1021s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1021s # 1021s # #else 1021s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1021s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1021s # 1021s # #endif 1021s # static void 1021s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1021s # { 1021s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1021s # g_datalist_clear (&proxy->priv->qdata); 1021s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1021s # guint prop_id G_GNUC_UNUSED, 1021s # GValue *value G_GNUC_UNUSED, 1021s # GParamSpec *pspec G_GNUC_UNUSED) 1021s # { 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1021s # guint prop_id G_GNUC_UNUSED, 1021s # const GValue *value G_GNUC_UNUSED, 1021s # GParamSpec *pspec G_GNUC_UNUSED) 1021s # { 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1021s # const gchar *sender_name G_GNUC_UNUSED, 1021s # const gchar *signal_name, 1021s # GVariant *parameters) 1021s # { 1021s # _ExtendedGDBusSignalInfo *info; 1021s # GVariantIter iter; 1021s # GVariant *child; 1021s # GValue *paramv; 1021s # gsize num_params; 1021s # gsize n; 1021s # guint signal_id; 1021s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1021s # if (info == NULL) 1021s # return; 1021s # num_params = g_variant_n_children (parameters); 1021s # paramv = g_new0 (GValue, num_params + 1); 1021s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1021s # g_value_set_object (¶mv[0], proxy); 1021s # g_variant_iter_init (&iter, parameters); 1021s # n = 1; 1021s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1021s # { 1021s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1021s # if (arg_info->use_gvariant) 1021s # { 1021s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1021s # g_value_set_variant (¶mv[n], child); 1021s # n++; 1021s # } 1021s # else 1021s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1021s # g_variant_unref (child); 1021s # } 1021s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1021s # g_signal_emitv (paramv, signal_id, 0, NULL); 1021s # for (n = 0; n < num_params + 1; n++) 1021s # g_value_unset (¶mv[n]); 1021s # g_free (paramv); 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1021s # GVariant *changed_properties, 1021s # const gchar *const *invalidated_properties) 1021s # { 1021s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1021s # guint n; 1021s # const gchar *key; 1021s # GVariantIter *iter; 1021s # _ExtendedGDBusPropertyInfo *info; 1021s # g_variant_get (changed_properties, "a{sv}", &iter); 1021s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1021s # { 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1021s # g_datalist_remove_data (&proxy->priv->qdata, key); 1021s # if (info != NULL) 1021s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1021s # } 1021s # g_variant_iter_free (iter); 1021s # for (n = 0; invalidated_properties[n] != NULL; n++) 1021s # { 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1021s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1021s # if (info != NULL) 1021s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1021s # } 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1021s # { 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1021s # #else 1021s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1021s # #endif 1021s # 1021s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1021s # { 1021s # GObjectClass *gobject_class; 1021s # GDBusProxyClass *proxy_class; 1021s # 1021s # gobject_class = G_OBJECT_CLASS (klass); 1021s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1021s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1021s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1021s # 1021s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1021s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1021s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1021s # 1021s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1021s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1021s # #endif 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1021s # { 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_proxy_new: 1021s # * @connection: A #GDBusConnection. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1021s # * 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1021s # * 1021s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1021s # */ 1021s # void 1021s # org_project_bar_frobnicator_proxy_new ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # 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); 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_proxy_new_finish: 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1021s # * 1021s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # OrgProjectBarFrobnicator * 1021s # org_project_bar_frobnicator_proxy_new_finish ( 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GObject *ret; 1021s # GObject *source_object; 1021s # source_object = g_async_result_get_source_object (res); 1021s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1021s # g_object_unref (source_object); 1021s # if (ret != NULL) 1021s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_proxy_new_sync: 1021s # * @connection: A #GDBusConnection. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1021s # * 1021s # * The calling thread is blocked until a reply is received. 1021s # * 1021s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1021s # * 1021s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # OrgProjectBarFrobnicator * 1021s # org_project_bar_frobnicator_proxy_new_sync ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GInitable *ret; 1021s # 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); 1021s # if (ret != NULL) 1021s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_proxy_new_for_bus: 1021s # * @bus_type: A #GBusType. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: A bus name (well-known or unique). 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1021s # * @user_data: User data to pass to @callback. 1021s # * 1021s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1021s # * 1021s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1021s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1021s # * 1021s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1021s # */ 1021s # void 1021s # org_project_bar_frobnicator_proxy_new_for_bus ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data) 1021s # { 1021s # 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); 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1021s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1021s # * 1021s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # OrgProjectBarFrobnicator * 1021s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1021s # GAsyncResult *res, 1021s # GError **error) 1021s # { 1021s # GObject *ret; 1021s # GObject *source_object; 1021s # source_object = g_async_result_get_source_object (res); 1021s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1021s # g_object_unref (source_object); 1021s # if (ret != NULL) 1021s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1021s # * @bus_type: A #GBusType. 1021s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1021s # * @name: A bus name (well-known or unique). 1021s # * @object_path: An object path. 1021s # * @cancellable: (nullable): A #GCancellable or %NULL. 1021s # * @error: Return location for error or %NULL 1021s # * 1021s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1021s # * 1021s # * The calling thread is blocked until a reply is received. 1021s # * 1021s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1021s # * 1021s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1021s # */ 1021s # OrgProjectBarFrobnicator * 1021s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error) 1021s # { 1021s # GInitable *ret; 1021s # 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); 1021s # if (ret != NULL) 1021s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1021s # else 1021s # return NULL; 1021s # } 1021s # 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # 1021s # /** 1021s # * OrgProjectBarFrobnicatorSkeleton: 1021s # * 1021s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1021s # */ 1021s # 1021s # /** 1021s # * OrgProjectBarFrobnicatorSkeletonClass: 1021s # * @parent_class: The parent class. 1021s # * 1021s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1021s # */ 1021s # 1021s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1021s # { 1021s # GValue *properties; 1021s # GList *changed_properties; 1021s # GSource *changed_properties_idle_source; 1021s # GMainContext *context; 1021s # GMutex lock; 1021s # }; 1021s # 1021s # static void 1021s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1021s # GDBusConnection *connection G_GNUC_UNUSED, 1021s # const gchar *sender G_GNUC_UNUSED, 1021s # const gchar *object_path G_GNUC_UNUSED, 1021s # const gchar *interface_name, 1021s # const gchar *method_name, 1021s # GVariant *parameters, 1021s # GDBusMethodInvocation *invocation, 1021s # gpointer user_data) 1021s # { 1021s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1021s # _ExtendedGDBusMethodInfo *info; 1021s # GVariantIter iter; 1021s # GVariant *child; 1021s # GValue *paramv; 1021s # gsize num_params; 1021s # guint num_extra; 1021s # gsize n; 1021s # guint signal_id; 1021s # GValue return_value = G_VALUE_INIT; 1021s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1021s # g_assert (info != NULL); 1021s # num_params = g_variant_n_children (parameters); 1021s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1021s # n = 0; 1021s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1021s # g_value_set_object (¶mv[n++], skeleton); 1021s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1021s # g_value_set_object (¶mv[n++], invocation); 1021s # if (info->pass_fdlist) 1021s # { 1021s # #ifdef G_OS_UNIX 1021s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1021s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1021s # #else 1021s # g_assert_not_reached (); 1021s # #endif 1021s # } 1021s # g_variant_iter_init (&iter, parameters); 1021s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1021s # { 1021s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1021s # if (arg_info->use_gvariant) 1021s # { 1021s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1021s # g_value_set_variant (¶mv[n], child); 1021s # n++; 1021s # } 1021s # else 1021s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1021s # g_variant_unref (child); 1021s # } 1021s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1021s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1021s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1021s # if (!g_value_get_boolean (&return_value)) 1021s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1021s # g_value_unset (&return_value); 1021s # for (n = 0; n < num_params + num_extra; n++) 1021s # g_value_unset (¶mv[n]); 1021s # g_free (paramv); 1021s # } 1021s # 1021s # static GVariant * 1021s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1021s # GDBusConnection *connection G_GNUC_UNUSED, 1021s # const gchar *sender G_GNUC_UNUSED, 1021s # const gchar *object_path G_GNUC_UNUSED, 1021s # const gchar *interface_name G_GNUC_UNUSED, 1021s # const gchar *property_name, 1021s # GError **error, 1021s # gpointer user_data) 1021s # { 1021s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1021s # GValue value = G_VALUE_INIT; 1021s # GParamSpec *pspec; 1021s # _ExtendedGDBusPropertyInfo *info; 1021s # GVariant *ret; 1021s # ret = NULL; 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1021s # g_assert (info != NULL); 1021s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1021s # if (pspec == NULL) 1021s # { 1021s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1021s # } 1021s # else 1021s # { 1021s # g_value_init (&value, pspec->value_type); 1021s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1021s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1021s # g_value_unset (&value); 1021s # } 1021s # return ret; 1021s # } 1021s # 1021s # static gboolean 1021s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1021s # GDBusConnection *connection G_GNUC_UNUSED, 1021s # const gchar *sender G_GNUC_UNUSED, 1021s # const gchar *object_path G_GNUC_UNUSED, 1021s # const gchar *interface_name G_GNUC_UNUSED, 1021s # const gchar *property_name, 1021s # GVariant *variant, 1021s # GError **error, 1021s # gpointer user_data) 1021s # { 1021s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1021s # GValue value = G_VALUE_INIT; 1021s # GParamSpec *pspec; 1021s # _ExtendedGDBusPropertyInfo *info; 1021s # gboolean ret; 1021s # ret = FALSE; 1021s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1021s # g_assert (info != NULL); 1021s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1021s # if (pspec == NULL) 1021s # { 1021s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1021s # } 1021s # else 1021s # { 1021s # if (info->use_gvariant) 1021s # g_value_set_variant (&value, variant); 1021s # else 1021s # g_dbus_gvariant_to_gvalue (variant, &value); 1021s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1021s # g_value_unset (&value); 1021s # ret = TRUE; 1021s # } 1021s # return ret; 1021s # } 1021s # 1021s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1021s # { 1021s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1021s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1021s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1021s # {NULL} 1021s # }; 1021s # 1021s # static GDBusInterfaceInfo * 1021s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1021s # { 1021s # return org_project_bar_frobnicator_interface_info (); 1021s # } 1021s # 1021s # static GDBusInterfaceVTable * 1021s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1021s # { 1021s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1021s # } 1021s # 1021s # static GVariant * 1021s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1021s # { 1021s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1021s # 1021s # GVariantBuilder builder; 1021s # guint n; 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1021s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1021s # #else 1021s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1021s # #endif 1021s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1021s # goto out; 1021s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1021s # { 1021s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1021s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1021s # { 1021s # GVariant *value; 1021s # 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); 1021s # if (value != NULL) 1021s # { 1021s # g_variant_take_ref (value); 1021s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1021s # g_variant_unref (value); 1021s # } 1021s # } 1021s # } 1021s # out: 1021s # return g_variant_builder_end (&builder); 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1021s # { 1021s # } 1021s # 1021s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1021s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1021s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1021s # 1021s # #else 1021s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1021s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1021s # 1021s # #endif 1021s # static void 1021s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1021s # { 1021s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1021s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1021s # if (skeleton->priv->changed_properties_idle_source != NULL) 1021s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1021s # g_main_context_unref (skeleton->priv->context); 1021s # g_mutex_clear (&skeleton->priv->lock); 1021s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1021s # { 1021s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1021s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1021s # #else 1021s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1021s # #endif 1021s # 1021s # g_mutex_init (&skeleton->priv->lock); 1021s # skeleton->priv->context = g_main_context_ref_thread_default (); 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1021s # { 1021s # GObjectClass *gobject_class; 1021s # GDBusInterfaceSkeletonClass *skeleton_class; 1021s # 1021s # gobject_class = G_OBJECT_CLASS (klass); 1021s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1021s # 1021s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1021s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1021s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1021s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1021s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1021s # 1021s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1021s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1021s # #endif 1021s # } 1021s # 1021s # static void 1021s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1021s # { 1021s # } 1021s # 1021s # /** 1021s # * org_project_bar_frobnicator_skeleton_new: 1021s # * 1021s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1021s # * 1021s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1021s # */ 1021s # OrgProjectBarFrobnicator * 1021s # org_project_bar_frobnicator_skeleton_new (void) 1021s # { 1021s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1021s # } 1021s # Error: 1021s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1021s # gdbus-codegen: /usr/bin/gdbus-codegen 1021s # tmpdir: /tmp/tmp8xwerui9 1021s # /tmp/tmp8xwerui9/tmp2ghu3b1r.xml: 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8xwerui9/tmp2ghu3b1r.xml', '--output', '-', '--header'] 1021s # Return code: 0 1021s # Output: 1021s # /* 1021s # * This file is generated by gdbus-codegen, do not modify it. 1021s # * 1021s # * The license of this code is the same as for the D-Bus interface description 1021s # * it was derived from. Note that it links to GLib, so must comply with the 1021s # * LGPL linking clauses. 1021s # */ 1021s # 1021s # #ifndef __STDOUT__ 1021s # #define __STDOUT__ 1021s # 1021s # #include 1021s # 1021s # G_BEGIN_DECLS 1021s # 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # /* Declarations for FDPassing */ 1021s # 1021s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1021s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1021s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1021s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1021s # 1021s # struct _FDPassing; 1021s # typedef struct _FDPassing FDPassing; 1021s # typedef struct _FDPassingIface FDPassingIface; 1021s # 1021s # struct _FDPassingIface 1021s # { 1021s # GTypeInterface parent_iface; 1021s # 1021s # gboolean (*handle_hello_fd) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # const gchar *arg_greeting); 1021s # 1021s # gboolean (*handle_no_annotation) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale); 1021s # 1021s # gboolean (*handle_no_annotation_nested) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GVariant *arg_files); 1021s # 1021s # }; 1021s # 1021s # GType fdpassing_get_type (void) G_GNUC_CONST; 1021s # 1021s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1021s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1021s # 1021s # 1021s # /* D-Bus method call completion functions: */ 1021s # void fdpassing_complete_hello_fd ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # const gchar *response); 1021s # 1021s # void fdpassing_complete_no_annotation ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GVariant *response, 1021s # const gchar *response_locale); 1021s # 1021s # void fdpassing_complete_no_annotation_nested ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation); 1021s # 1021s # 1021s # 1021s # /* D-Bus method calls: */ 1021s # void fdpassing_call_hello_fd ( 1021s # FDPassing *proxy, 1021s # const gchar *arg_greeting, 1021s # GUnixFDList *fd_list, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_hello_fd_finish ( 1021s # FDPassing *proxy, 1021s # gchar **out_response, 1021s # GUnixFDList **out_fd_list, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_hello_fd_sync ( 1021s # FDPassing *proxy, 1021s # const gchar *arg_greeting, 1021s # GUnixFDList *fd_list, 1021s # gchar **out_response, 1021s # GUnixFDList **out_fd_list, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_call_no_annotation ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_no_annotation_finish ( 1021s # FDPassing *proxy, 1021s # GVariant **out_response, 1021s # gchar **out_response_locale, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_no_annotation_sync ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale, 1021s # GVariant **out_response, 1021s # gchar **out_response_locale, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_call_no_annotation_nested ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_files, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_no_annotation_nested_finish ( 1021s # FDPassing *proxy, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_no_annotation_nested_sync ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_files, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # 1021s # 1021s # /* ---- */ 1021s # 1021s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1021s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1021s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1021s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1021s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1021s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1021s # 1021s # typedef struct _FDPassingProxy FDPassingProxy; 1021s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1021s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1021s # 1021s # struct _FDPassingProxy 1021s # { 1021s # /*< private >*/ 1021s # GDBusProxy parent_instance; 1021s # FDPassingProxyPrivate *priv; 1021s # }; 1021s # 1021s # struct _FDPassingProxyClass 1021s # { 1021s # GDBusProxyClass parent_class; 1021s # }; 1021s # 1021s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1021s # 1021s # #if GLIB_CHECK_VERSION(2, 44, 0) 1021s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1021s # #endif 1021s # 1021s # void fdpassing_proxy_new ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # FDPassing *fdpassing_proxy_new_finish ( 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # FDPassing *fdpassing_proxy_new_sync ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_proxy_new_for_bus ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # 1021s # /* ---- */ 1021s # 1021s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1021s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1021s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1021s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1021s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1021s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1021s # 1021s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1021s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1021s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1021s # 1021s # struct _FDPassingSkeleton 1021s # { 1021s # /*< private >*/ 1021s # GDBusInterfaceSkeleton parent_instance; 1021s # FDPassingSkeletonPrivate *priv; 1021s # }; 1021s # 1021s # struct _FDPassingSkeletonClass 1021s # { 1021s # GDBusInterfaceSkeletonClass parent_class; 1021s # }; 1021s # 1021s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1021s # 1021s # #if GLIB_CHECK_VERSION(2, 44, 0) 1021s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1021s # #endif 1021s # 1021s # FDPassing *fdpassing_skeleton_new (void); 1021s # 1021s # 1021s # G_END_DECLS 1021s # 1021s # #endif /* __STDOUT__ */ 1021s # Error: 1021s # 1021s # /tmp/tmp8xwerui9/tmpsnk422c9.xml: 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8xwerui9/tmpsnk422c9.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1021s # Return code: 0 1021s # Output: 1021s # /* 1021s # * This file is generated by gdbus-codegen, do not modify it. 1021s # * 1021s # * The license of this code is the same as for the D-Bus interface description 1021s # * it was derived from. Note that it links to GLib, so must comply with the 1021s # * LGPL linking clauses. 1021s # */ 1021s # 1021s # #ifndef __STDOUT__ 1021s # #define __STDOUT__ 1021s # 1021s # #include 1021s # 1021s # G_BEGIN_DECLS 1021s # 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # /* Declarations for FDPassing */ 1021s # 1021s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1021s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1021s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1021s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1021s # 1021s # struct _FDPassing; 1021s # typedef struct _FDPassing FDPassing; 1021s # typedef struct _FDPassingIface FDPassingIface; 1021s # 1021s # struct _FDPassingIface 1021s # { 1021s # GTypeInterface parent_iface; 1021s # 1021s # gboolean (*handle_hello_fd) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # const gchar *arg_greeting); 1021s # 1021s # gboolean (*handle_no_annotation) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale); 1021s # 1021s # gboolean (*handle_no_annotation_nested) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GVariant *arg_files); 1021s # 1021s # }; 1021s # 1021s # GType fdpassing_get_type (void) G_GNUC_CONST; 1021s # 1021s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1021s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1021s # 1021s # 1021s # /* D-Bus method call completion functions: */ 1021s # void fdpassing_complete_hello_fd ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # const gchar *response); 1021s # 1021s # void fdpassing_complete_no_annotation ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GVariant *response, 1021s # const gchar *response_locale); 1021s # 1021s # void fdpassing_complete_no_annotation_nested ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation); 1021s # 1021s # 1021s # 1021s # /* D-Bus method calls: */ 1021s # void fdpassing_call_hello_fd ( 1021s # FDPassing *proxy, 1021s # const gchar *arg_greeting, 1021s # GUnixFDList *fd_list, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_hello_fd_finish ( 1021s # FDPassing *proxy, 1021s # gchar **out_response, 1021s # GUnixFDList **out_fd_list, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_hello_fd_sync ( 1021s # FDPassing *proxy, 1021s # const gchar *arg_greeting, 1021s # GUnixFDList *fd_list, 1021s # gchar **out_response, 1021s # GUnixFDList **out_fd_list, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_call_no_annotation ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_no_annotation_finish ( 1021s # FDPassing *proxy, 1021s # GVariant **out_response, 1021s # gchar **out_response_locale, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_no_annotation_sync ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale, 1021s # GVariant **out_response, 1021s # gchar **out_response_locale, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_call_no_annotation_nested ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_files, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_no_annotation_nested_finish ( 1021s # FDPassing *proxy, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_no_annotation_nested_sync ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_files, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # 1021s # 1021s # /* ---- */ 1021s # 1021s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1021s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1021s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1021s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1021s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1021s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1021s # 1021s # typedef struct _FDPassingProxy FDPassingProxy; 1021s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1021s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1021s # 1021s # struct _FDPassingProxy 1021s # { 1021s # /*< private >*/ 1021s # GDBusProxy parent_instance; 1021s # FDPassingProxyPrivate *priv; 1021s # }; 1021s # 1021s # struct _FDPassingProxyClass 1021s # { 1021s # GDBusProxyClass parent_class; 1021s # }; 1021s # 1021s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1021s # 1021s # #if GLIB_CHECK_VERSION(2, 44, 0) 1021s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1021s # #endif 1021s # 1021s # void fdpassing_proxy_new ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # FDPassing *fdpassing_proxy_new_finish ( 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # FDPassing *fdpassing_proxy_new_sync ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_proxy_new_for_bus ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # 1021s # /* ---- */ 1021s # 1021s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1021s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1021s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1021s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1021s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1021s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1021s # 1021s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1021s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1021s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1021s # 1021s # struct _FDPassingSkeleton 1021s # { 1021s # /*< private >*/ 1021s # GDBusInterfaceSkeleton parent_instance; 1021s # FDPassingSkeletonPrivate *priv; 1021s # }; 1021s # 1021s # struct _FDPassingSkeletonClass 1021s # { 1021s # GDBusInterfaceSkeletonClass parent_class; 1021s # }; 1021s # 1021s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1021s # 1021s # #if GLIB_CHECK_VERSION(2, 44, 0) 1021s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1021s # #endif 1021s # 1021s # FDPassing *fdpassing_skeleton_new (void); 1021s # 1021s # 1021s # G_END_DECLS 1021s # 1021s # #endif /* __STDOUT__ */ 1021s # Error: 1021s # 1021s # /tmp/tmp8xwerui9/tmpj5yfh1u8.xml: 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # 1021s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8xwerui9/tmpj5yfh1u8.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1021s # Return code: 0 1021s # Output: 1021s # /* 1021s # * This file is generated by gdbus-codegen, do not modify it. 1021s # * 1021s # * The license of this code is the same as for the D-Bus interface description 1021s # * it was derived from. Note that it links to GLib, so must comply with the 1021s # * LGPL linking clauses. 1021s # */ 1021s # 1021s # #ifndef __STDOUT__ 1021s # #define __STDOUT__ 1021s # 1021s # #include 1021s # 1021s # G_BEGIN_DECLS 1021s # 1021s # 1021s # /* ------------------------------------------------------------------------ */ 1021s # /* Declarations for FDPassing */ 1021s # 1021s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1021s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1021s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1021s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1021s # 1021s # struct _FDPassing; 1021s # typedef struct _FDPassing FDPassing; 1021s # typedef struct _FDPassingIface FDPassingIface; 1021s # 1021s # struct _FDPassingIface 1021s # { 1021s # GTypeInterface parent_iface; 1021s # 1021s # gboolean (*handle_hello_fd) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # const gchar *arg_greeting); 1021s # 1021s # gboolean (*handle_no_annotation) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale); 1021s # 1021s # gboolean (*handle_no_annotation_nested) ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # GVariant *arg_files); 1021s # 1021s # }; 1021s # 1021s # GType fdpassing_get_type (void) G_GNUC_CONST; 1021s # 1021s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1021s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1021s # 1021s # 1021s # /* D-Bus method call completion functions: */ 1021s # void fdpassing_complete_hello_fd ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # const gchar *response); 1021s # 1021s # void fdpassing_complete_no_annotation ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list, 1021s # GVariant *response, 1021s # const gchar *response_locale); 1021s # 1021s # void fdpassing_complete_no_annotation_nested ( 1021s # FDPassing *object, 1021s # GDBusMethodInvocation *invocation, 1021s # GUnixFDList *fd_list); 1021s # 1021s # 1021s # 1021s # /* D-Bus method calls: */ 1021s # void fdpassing_call_hello_fd ( 1021s # FDPassing *proxy, 1021s # const gchar *arg_greeting, 1021s # GDBusCallFlags call_flags, 1021s # gint timeout_msec, 1021s # GUnixFDList *fd_list, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_hello_fd_finish ( 1021s # FDPassing *proxy, 1021s # gchar **out_response, 1021s # GUnixFDList **out_fd_list, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_hello_fd_sync ( 1021s # FDPassing *proxy, 1021s # const gchar *arg_greeting, 1021s # GDBusCallFlags call_flags, 1021s # gint timeout_msec, 1021s # GUnixFDList *fd_list, 1021s # gchar **out_response, 1021s # GUnixFDList **out_fd_list, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_call_no_annotation ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale, 1021s # GDBusCallFlags call_flags, 1021s # gint timeout_msec, 1021s # GUnixFDList *fd_list, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_no_annotation_finish ( 1021s # FDPassing *proxy, 1021s # GVariant **out_response, 1021s # gchar **out_response_locale, 1021s # GUnixFDList **out_fd_list, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_no_annotation_sync ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_greeting, 1021s # const gchar *arg_greeting_locale, 1021s # GDBusCallFlags call_flags, 1021s # gint timeout_msec, 1021s # GUnixFDList *fd_list, 1021s # GVariant **out_response, 1021s # gchar **out_response_locale, 1021s # GUnixFDList **out_fd_list, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_call_no_annotation_nested ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_files, 1021s # GDBusCallFlags call_flags, 1021s # gint timeout_msec, 1021s # GUnixFDList *fd_list, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # 1021s # gboolean fdpassing_call_no_annotation_nested_finish ( 1021s # FDPassing *proxy, 1021s # GUnixFDList **out_fd_list, 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # 1021s # gboolean fdpassing_call_no_annotation_nested_sync ( 1021s # FDPassing *proxy, 1021s # GVariant *arg_files, 1021s # GDBusCallFlags call_flags, 1021s # gint timeout_msec, 1021s # GUnixFDList *fd_list, 1021s # GUnixFDList **out_fd_list, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # 1021s # 1021s # /* ---- */ 1021s # 1021s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1021s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1021s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1021s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1021s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1021s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1021s # 1021s # typedef struct _FDPassingProxy FDPassingProxy; 1021s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1021s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1021s # 1021s # struct _FDPassingProxy 1021s # { 1021s # /*< private >*/ 1021s # GDBusProxy parent_instance; 1021s # FDPassingProxyPrivate *priv; 1021s # }; 1021s # 1021s # struct _FDPassingProxyClass 1021s # { 1021s # GDBusProxyClass parent_class; 1021s # }; 1021s # 1021s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1021s # 1021s # #if GLIB_CHECK_VERSION(2, 44, 0) 1021s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1021s # #endif 1021s # 1021s # void fdpassing_proxy_new ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # FDPassing *fdpassing_proxy_new_finish ( 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # FDPassing *fdpassing_proxy_new_sync ( 1021s # GDBusConnection *connection, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # void fdpassing_proxy_new_for_bus ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GAsyncReadyCallback callback, 1021s # gpointer user_data); 1021s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1021s # GAsyncResult *res, 1021s # GError **error); 1021s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1021s # GBusType bus_type, 1021s # GDBusProxyFlags flags, 1021s # const gchar *name, 1021s # const gchar *object_path, 1021s # GCancellable *cancellable, 1021s # GError **error); 1021s # 1021s # 1021s # /* ---- */ 1021s # 1021s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1021s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1021s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1021s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1021s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1021s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1021s # 1021s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1021s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1021s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1021s # 1021s # struct _FDPassingSkeleton 1021s # { 1021s # /*< private >*/ 1021s # GDBusInterfaceSkeleton parent_instance; 1021s # FDPassingSkeletonPrivate *priv; 1021s # }; 1021s # 1021s # struct _FDPassingSkeletonClass 1021s # { 1021s # GDBusInterfaceSkeletonClass parent_class; 1021s # }; 1021s # 1021s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1021s # 1021s # #if GLIB_CHECK_VERSION(2, 44, 0) 1021s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1021s # #endif 1021s # 1021s # FDPassing *fdpassing_skeleton_new (void); 1021s # 1021s # 1021s # G_END_DECLS 1021s # 1021s # #endif /* __STDOUT__ */ 1021s # Error: 1021s 1..39 1021s TAP version 14 1021s # random seed: R02S276d07deeeea989b11d40a1c50495847 1021s 1..4 1021s # Start of network-monitor tests 1021s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1021s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1021s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ?gio-network-monitor? 1021s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1021s ok 1 /network-monitor/default 1021s ok 2 /network-monitor/remove_default 1021s ok 3 /network-monitor/add_networks 1021s ok 4 /network-monitor/remove_networks 1021s # End of network-monitor tests 1021s TAP version 14 1021s # random seed: R02S607800b8dc984adcd9c633967991f41a 1021s 1..7 1021s # Start of data-output-stream tests 1021s ok 1 /data-output-stream/basic 1021s ok 2 /data-output-stream/write-lines-LF 1021s ok 3 /data-output-stream/write-lines-CR 1021s ok 4 /data-output-stream/write-lines-CR-LF 1021s ok 5 /data-output-stream/write-int 1021s ok 6 /data-output-stream/seek 1021s ok 7 /data-output-stream/truncate 1021s # End of data-output-stream tests 1021s TAP version 14 1021s # random seed: R02Sb4df475c2e6c8abed3fe9125081f9d9d 1021s 1..7 1021s # Start of appinfo tests 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1021s ok 1 /appinfo/all 1021s # Start of mime tests 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_HLFT52/appinfo/all/.dirs/config to /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config 1021s ok 2 /appinfo/mime/api 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config 1021s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_HLFT52/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config 1021s ok 3 /appinfo/mime/default 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_HLFT52/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config 1021s ok 4 /appinfo/mime/file 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1021s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_HLFT52/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/config 1021s ok 5 /appinfo/mime/scheme-handler 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_HLFT52/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config 1021s ok 6 /appinfo/mime/default-last-used 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/runtime 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1021s # removing '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1021s # creating '/tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1021s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_HLFT52/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_HLFT52/appinfo/mime/ignore-nonexisting/.dirs/config 1021s ok 7 /appinfo/mime/ignore-nonexisting 1021s # End of mime tests 1021s # End of appinfo tests 1021s TAP version 14 1021s # random seed: R02S36860ffcc3ff3bc272f87f8d1db24a76 1021s 1..14 1021s # Start of slist tests 1021s ok 1 /slist/sort 1021s ok 2 /slist/sort-with-data 1021s ok 3 /slist/insert-sorted 1021s ok 4 /slist/insert-sorted-with-data 1021s ok 5 /slist/reverse 1021s ok 6 /slist/nth 1021s ok 7 /slist/remove 1021s ok 8 /slist/remove-all 1021s ok 9 /slist/insert 1021s ok 10 /slist/position 1021s ok 11 /slist/concat 1021s ok 12 /slist/copy 1021s # Start of sort tests 1021s ok 13 /slist/sort/stable 1021s # End of sort tests 1021s # Start of copy tests 1021s ok 14 /slist/copy/deep 1021s # End of copy tests 1021s # End of slist tests 1021s TAP version 14 1021s # random seed: R02S55f9c4ccda976a52f56cff3e6c3fba17 1021s 1..1 1021s # Start of gobject tests 1021s # Start of refcount tests 1021s ok 1 /gobject/refcount/properties-4 1021s # End of refcount tests 1021s # End of gobject tests 1021s TAP version 14 1021s # random seed: R02S1329631bbf650fb042c135510bb7bd77 1021s 1..27 1021s # Start of fileutils tests 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/paths/.dirs/runtime 1021s ok 1 /fileutils/paths 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/build-path/.dirs/runtime 1021s ok 2 /fileutils/build-path 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/build-pathv/.dirs/runtime 1021s ok 3 /fileutils/build-pathv 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/build-filename/.dirs/runtime 1021s ok 4 /fileutils/build-filename 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/build-filenamev/.dirs/runtime 1021s ok 5 /fileutils/build-filenamev 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents/.dirs/runtime 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Checking g_mkdir_with_parents() in subdir ./hum/ 1021s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1021s ok 6 /fileutils/mkdir-with-parents 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/mkdir-with-parents-permission/.dirs/runtime 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s ok 7 /fileutils/mkdir-with-parents-permission 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/format-size-for-display/.dirs/runtime 1021s ok 8 /fileutils/format-size-for-display 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/errors/.dirs/runtime 1021s ok 9 /fileutils/errors 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/basename/.dirs/runtime 1021s ok 10 /fileutils/basename 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/get-basename/.dirs/runtime 1021s ok 11 /fileutils/get-basename 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/dirname/.dirs/runtime 1021s ok 12 /fileutils/dirname 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/dir-make-tmp/.dirs/runtime 1021s ok 13 /fileutils/dir-make-tmp 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/file-open-tmp/.dirs/runtime 1021s ok 14 /fileutils/file-open-tmp 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/file-test/.dirs/runtime 1021s ok 15 /fileutils/file-test 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/mkstemp/.dirs/runtime 1021s ok 16 /fileutils/mkstemp 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/mkdtemp/.dirs/runtime 1021s ok 17 /fileutils/mkdtemp 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/get-contents/.dirs/runtime 1021s ok 18 /fileutils/get-contents 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/get-contents-large-file/.dirs/runtime 1021s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/set-contents/.dirs/runtime 1021s ok 20 /fileutils/set-contents 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/.dirs/runtime 1021s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1021s # Flags 0 and test 0 1021s # Flags 0 and test 1 1021s # Flags 0 and test 2 1021s # Flags 0 and test 3 1021s # Flags 0 and test 4 1021s # Flags 0 and test 5 1021s # Flags 1 and test 0 1021s # Flags 1 and test 1 1021s # Flags 1 and test 2 1021s # Flags 1 and test 3 1021s # Flags 1 and test 4 1021s # Flags 1 and test 5 1021s # Flags 2 and test 0 1021s # Flags 2 and test 1 1021s # Flags 2 and test 2 1021s # Flags 2 and test 3 1021s # Flags 2 and test 4 1021s # Flags 2 and test 5 1021s # Flags 3 and test 0 1021s # Flags 3 and test 1 1021s # Flags 3 and test 2 1021s # Flags 3 and test 3 1021s # Flags 3 and test 4 1021s # Flags 3 and test 5 1021s # Flags 4 and test 0 1021s # Flags 4 and test 1 1021s # Flags 4 and test 2 1021s # Flags 4 and test 3 1021s # Flags 4 and test 4 1021s # Flags 4 and test 5 1021s # Flags 5 and test 0 1021s # Flags 5 and test 1 1021s # Flags 5 and test 2 1021s # Flags 5 and test 3 1021s # Flags 5 and test 4 1021s # Flags 5 and test 5 1021s # Flags 6 and test 0 1021s # Flags 6 and test 1 1021s # Flags 6 and test 2 1021s # Flags 6 and test 3 1021s # Flags 6 and test 4 1021s # Flags 6 and test 5 1021s ok 21 /fileutils/set-contents-full 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/read-link/.dirs/runtime 1021s ok 22 /fileutils/read-link 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/stdio-wrappers/.dirs/runtime 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s ok 23 /fileutils/stdio-wrappers 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/fopen-modes/.dirs/runtime 1021s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1021s # Testing fopen() mode 'w' 1021s # Testing fopen() mode 'r' 1021s # Testing fopen() mode 'a' 1021s # Testing fopen() mode 'w+' 1021s # Testing fopen() mode 'r+' 1021s # Testing fopen() mode 'a+' 1021s # Testing fopen() mode 'wb' 1021s # Testing fopen() mode 'rb' 1021s # Testing fopen() mode 'ab' 1021s # Testing fopen() mode 'w+b' 1021s # Testing fopen() mode 'r+b' 1021s # Testing fopen() mode 'a+b' 1021s # Testing fopen() mode 'wb+' 1021s # Testing fopen() mode 'rb+' 1021s # Testing fopen() mode 'ab+' 1021s ok 24 /fileutils/fopen-modes 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/clear-fd/.dirs/runtime 1021s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1021s # Will be closed by autocleanup: 3, -42 1021s # Testing error handling 1021s ok 25 /fileutils/clear-fd 1021s # Start of set-contents-full tests 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-file/.dirs/runtime 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1021s ok 26 /fileutils/set-contents-full/read-only-file 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_V1TV52/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1021s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1021s # Flags 0 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Flags 1 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Flags 2 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Flags 3 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Flags 4 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Flags 5 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s # Flags 6 1021s # We do not have CAP_DAC_OVERRIDE or equivalent 1021s ok 27 /fileutils/set-contents-full/read-only-directory 1021s # End of set-contents-full tests 1021s # Start of clear-fd tests 1021s # Start of subprocess tests 1021s # End of subprocess tests 1021s # End of clear-fd tests 1021s # End of fileutils tests 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-TP4R52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-3K4S52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-RM3S52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-ZQ1S52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-MB2S52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-R70S52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52/glib-file-set-contents-full-rodir-J2BT52: Directory not empty 1021s Unable to clean up temporary directory /tmp/test_fileutils_V1TV52: Directory not empty 1021s TAP version 14 1021s # random seed: R02S1d5b08272cb2644e59ff3d754be3c547 1021s 1..2 1021s # Start of gobject tests 1021s ok 1 /gobject/dynamic-type 1021s # Start of dynamic-type tests 1021s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1021s ok 2 /gobject/dynamic-type/query 1021s # End of dynamic-type tests 1021s # End of gobject tests 1021s TAP version 14 1021s # random seed: R02Sd5b2bdcb7b6bdf4558ef15c5834e06e5 1021s 1..2 1021s # Start of gdbus tests 1021s # Start of peer-object-manager tests 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/normal/.dirs/runtime 1021s ok 1 /gdbus/peer-object-manager/normal 1021s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/home 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/cache 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/system-config2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/config 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/system-data2 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/data 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/state 1021s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_8MOS52/gdbus/peer-object-manager/root/.dirs/runtime 1021s ok 2 /gdbus/peer-object-manager/root 1021s # End of peer-object-manager tests 1021s # End of gdbus tests 1021s TAP version 14 1021s # random seed: R02Sde667e0567cc6095c338b4c86625c15e 1021s 1..3 1021s # Start of static-proxy tests 1021s ok 1 /static-proxy/uri 1021s ok 2 /static-proxy/socks 1021s ok 3 /static-proxy/ignore 1021s # End of static-proxy tests 1021s TAP version 14 1021s # random seed: R02Sa8e9762e4abbd58f1de9198be4ac8ce3 1021s 1..3 1021s # Start of slice tests 1021s ok 1 /slice/copy 1021s ok 2 /slice/chain 1021s ok 3 /slice/allocate 1021s # End of slice tests 1021s TAP version 14 1021s # random seed: R02S49d9ceecfe508551f60e2a83259c0cb2 1021s 1..7 1021s # Start of asyncqueue tests 1021s ok 1 /asyncqueue/basics 1021s ok 2 /asyncqueue/sort 1021s ok 3 /asyncqueue/destroy 1021s ok 4 /asyncqueue/threads 1021s ok 5 /asyncqueue/timed 1021s ok 6 /asyncqueue/remove 1021s ok 7 /asyncqueue/push_front 1021s # End of asyncqueue tests 1021s TAP version 14 1021s # random seed: R02Se48dc6e2006267b699a627523ece982e 1021s 1..36 1021s # Start of gtask tests 1021s ok 1 /gtask/basic 1021s ok 2 /gtask/error 1021s ok 3 /gtask/error-literal 1021s ok 4 /gtask/error-literal-from-variable 1021s ok 5 /gtask/return-from-same-iteration 1021s ok 6 /gtask/return-from-toplevel 1021s ok 7 /gtask/return-from-anon-thread 1021s ok 8 /gtask/return-from-wrong-thread 1021s ok 9 /gtask/no-callback 1021s ok 10 /gtask/report-error 1021s ok 11 /gtask/priority 1021s ok 12 /gtask/name 1021s ok 13 /gtask/static-name 1021s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1021s ok 14 /gtask/asynchronous-cancellation 1021s ok 15 /gtask/check-cancellable 1021s ok 16 /gtask/return-if-cancelled 1021s ok 17 /gtask/run-in-thread 1021s ok 18 /gtask/run-in-thread-sync 1021s ok 19 /gtask/run-in-thread-priority 1021s ok 20 /gtask/run-in-thread-nested 1021s ok 21 /gtask/run-in-thread-overflow 1021s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 1021s # GLib-GIO-DEBUG: GTask 0x8d3e2f8 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1021s # GLib-GIO-DEBUG: GTask 0x8cfc260 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1021s ok 22 /gtask/return-on-cancel 1021s # GLib-GIO-DEBUG: GTask 0x8cfc078 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1021s ok 23 /gtask/return-on-cancel-sync 1021s # GLib-GIO-DEBUG: GTask 0x8cfbf28 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1021s ok 24 /gtask/return-on-cancel-atomic 1021s ok 25 /gtask/return-pointer 1021s ok 26 /gtask/return-value 1021s ok 27 /gtask/return-prefixed-error 1021s ok 28 /gtask/object-keepalive 1021s ok 29 /gtask/legacy-error 1021s ok 30 /gtask/finalize-without-return 1021s # Start of name tests 1021s ok 31 /gtask/name/macro-wrapper 1021s # End of name tests 1021s # Start of return tests 1021s ok 32 /gtask/return/error-first 1021s ok 33 /gtask/return/value-first 1021s # Start of in-idle tests 1021s ok 34 /gtask/return/in-idle/error-first 1021s ok 35 /gtask/return/in-idle/value-first 1021s # End of in-idle tests 1021s # End of return tests 1021s # Start of attach-source tests 1021s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source?s name if unset 1021s ok 36 /gtask/attach-source/set-name 1021s # End of attach-source tests 1021s # End of gtask tests 1021s TAP version 14 1021s # random seed: R02S768f170e7c48405212f4972e337f1236 1021s 1..6 1021s # Start of thread tests 1021s ok 1 /thread/mutex 1021s ok 2 /thread/static-rec-mutex 1025s # Executing: glib/thread-deprecated.test 1025s ok 3 /thread/static-private 1025s # slow test /thread/static-private executed in 4.40 secs 1030s # Executing: glib/thread-deprecated.test 1030s ok 4 /thread/static-rw-lock 1030s # slow test /thread/static-rw-lock executed in 5.00 secs 1030s ok 5 /thread/once 1033s # Executing: glib/thread-deprecated.test 1038s # Executing: glib/thread-deprecated.test 1041s ok 6 /thread/rerun-all 1041s # slow test /thread/rerun-all executed in 10.03 secs 1041s # End of thread tests 1041s ok - glib/thread-deprecated.test 1041s # Running test: glib/cond.test 1041s TAP version 14 1041s # random seed: R02S9c424876eabaa34f5e6ff6a3ec60a967 1041s 1..4 1041s # Start of thread tests 1041s ok 1 /thread/cond1 1041s ok 2 /thread/cond2 1041s # Start of cond tests 1041s ok 3 /thread/cond/wait-until 1041s # slow test /thread/cond/wait-until executed in 1.02 secs 1041s # Start of wait-until tests 1041s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1041s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1042s ok 4 /thread/cond/wait-until/contended-and-interrupted 1042s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1042s # End of wait-until tests 1042s # End of cond tests 1042s # End of thread tests 1042s ok - glib/cond.test 1042s # Running test: glib/gdbus-method-invocation.test 1042s TAP version 14 1042s # random seed: R02S6e17718f58dad2eac01d7983ad96dd50 1042s 1..1 1042s # Start of gdbus tests 1042s # Start of method-invocation tests 1042s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/home 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/cache 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/system-config2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/config 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/system-data2 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/data 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/state 1042s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_6OQ152/gdbus/method-invocation/return/.dirs/runtime 1042s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1042s # Calling org.freedesktop.DBus.Properties.Get 1042s # Calling org.freedesktop.DBus.Properties.Get 1042s # Calling org.freedesktop.DBus.Properties.Get 1042s # Calling org.freedesktop.DBus.Properties.Set 1042s # Calling org.freedesktop.DBus.Properties.GetAll 1042s ok - glib/gdbus-method-invocation.test 1042s # Running test: glib/cxx-14.test 1042s ok - glib/cxx-14.test 1042s # Running test: glib/cache.test 1042s ok - glib/cache.test 1042s # Running test: glib/signals-refcount2.test 1042s # Calling org.example.Foo.WrongReturnType 1042s # Calling org.example.Foo.GetFDs 1042s # Calling org.example.Foo.GetFDs 1042s # Calling org.example.Foo.ReturnError 1042s # Calling org.example.Foo.CloseBeforeReturning 1042s ok 1 /gdbus/method-invocation/return 1042s # End of method-invocation tests 1042s # End of gdbus tests 1042s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1042s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1042s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1042s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1042s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1042s TAP version 14 1042s # random seed: R02Sc4396e28fb6153c6a57e20b25c7b9774 1042s 1..2 1042s # Start of gtask tests 1042s # 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. 1042s ok 1 /gtask/name 1042s # Start of name tests 1042s # 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. 1042s ok 2 /gtask/name/macro-wrapper 1042s # End of name tests 1042s # End of gtask tests 1042s TAP version 14 1042s # random seed: R02S2aea7341a2e137c5eab8ea7ae562d01d 1042s 1..1 1042s # Start of cache tests 1042s ok 1 /cache/basic 1042s # End of cache tests 1042s TAP version 14 1042s # random seed: R02S4178b7582086722f24f5db3c7e2613a1 1042s 1..1 1042s # Start of gobject tests 1042s # Start of refcount tests 1042s # init 0xf839978 1042s # 1042s # init 0xf841a38 1042s # 1043s # Executing: glib/signals-refcount2.test 1048s # dispose 0xf839978! 1048s # 1048s # dispose 0xf841a38! 1048s # 1048s ok 1 /gobject/refcount/signals 1048s # slow test /gobject/refcount/signals executed in 5.00 secs 1048s # End of refcount tests 1048s # End of gobject tests 1048s ok - glib/signals-refcount2.test 1048s # Running test: glib/buffered-input-stream.test 1048s ok - glib/buffered-input-stream.test 1048s TAP version 14 1048s # random seed: R02S7f81716c9fa028521c608eccdcecb8d6 1048s 1..10 1048s # Start of buffered-input-stream tests 1048s ok 1 /buffered-input-stream/peek 1048s ok 2 /buffered-input-stream/peek-buffer 1048s ok 3 /buffered-input-stream/set-buffer-size 1048s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=562393 1048s ok 4 /buffered-input-stream/read-byte 1048s ok 5 /buffered-input-stream/read 1048s ok 6 /buffered-input-stream/read-async 1048s ok 7 /buffered-input-stream/skip 1048s ok 8 /buffered-input-stream/skip-async 1048s ok 9 /buffered-input-stream/seek 1048s # End of buffered-input-stream tests 1048s # Start of filter-input-stream tests 1048s ok 10 /filter-input-stream/close 1048s # End of filter-input-stream tests 1048s TAP version 14 1048s # random seed: R02S88c0636cdb382e937ca0b67f7bc1bd27 1048s 1..1 1048s # Start of gobject tests 1048s # Start of refcount tests 1048s # init 0x1107c978 1048s # 1048s # init 0x11084a38 1048s # 1048s # Running test: glib/signals-refcount3.test 1048s # Executing: glib/signals-refcount3.test 1052s ok - glib/signals-refcount3.test 1052s # dispose 0x1107c978! 1052s # 1052s # dispose 0x11084a38! 1052s # 1052s ok 1 /gobject/refcount/signals 1052s # slow test /gobject/refcount/signals executed in 5.00 secs 1052s # End of refcount tests 1052s # End of gobject tests 1052s # Running test: glib/gdbus-introspection.test 1052s TAP version 14 1052s # random seed: R02S5be9a2ef5107d66d06e27db454765c21 1052s 1..4 1052s # Start of gdbus tests 1052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/home 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/cache 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/system-config2 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/config 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/system-data2 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/data 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/state 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-parser/.dirs/runtime 1052s ok - glib/gdbus-introspection.test 1052s ok 1 /gdbus/introspection-parser 1052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/home 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/cache 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/system-config2 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/config 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/system-data2 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/data 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/state 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-generate/.dirs/runtime 1052s ok 2 /gdbus/introspection-generate 1052s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/home 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/cache 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/system-config2 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/config 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/system-data2 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/data 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/state 1052s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-default-direction/.dirs/runtime 1052s ok 3 /gdbus/introspection-default-direction 1052s # Running test: glib/portal-support-snap.test 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_TG8V52/gdbus/introspection-extra-data/.dirs/runtime 1053s ok 4 /gdbus/introspection-extra-data 1053s # End of gdbus tests 1053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1053s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1053s TAP version 14 1053s # random seed: R02S34c8e006508cd71703dcdf626e345f34 1053s 1..7 1053s # Start of portal-support tests 1053s # Start of snap tests 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/no-snapctl: No such file or directory 1053s ok 1 /portal-support/snap/no-snapctl 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none/.dirs/runtime/snapctl 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/none: No such file or directory 1053s ok 2 /portal-support/snap/none 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all/.dirs/runtime/snapctl 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/all: No such file or directory 1053s ok 3 /portal-support/snap/all 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/desktop-only: No such file or directory 1053s ok 4 /portal-support/snap/desktop-only 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only/.dirs/runtime/snapctl 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/network-only: No such file or directory 1053s ok 5 /portal-support/snap/network-only 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/gsettings-only: No such file or directory 1053s ok 6 /portal-support/snap/gsettings-only 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime 1053s # Created snap.yaml in /tmp/test_portal-support-snap_PNFX52/meta/snap.yaml 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s # Created snapctl in /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1053s ok - glib/portal-support-snap.test 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52/portal-support/snap/updates-dynamically: No such file or directory 1053s ok 7 /portal-support/snap/updates-dynamically 1053s # End of snap tests 1053s # End of portal-support tests 1053s Unable to clean up temporary directory /tmp/test_portal-support-snap_PNFX52: No such file or directory 1053s # Running test: glib/static-link.test 1053s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1053s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1053s and make sure you have glib build dependencies installed, including 1053s meson. 1053s ok # SKIP - glib/static-link.test 1053s # Running test: glib/socket.test 1053s TAP version 14 1053s # random seed: R02S12d025c17383aaa92ee41fbe09bb95c7 1053s 1..28 1053s # Start of socket tests 1053s # Executing: glib/socket.test 1054s ok 1 /socket/ipv4_sync 1054s # slow test /socket/ipv4_sync executed in 1.00 secs 1055s ok 2 /socket/ipv4_async 1055s # slow test /socket/ipv4_async executed in 1.00 secs 1055s ok 3 /socket/ipv6_sync 1055s ok 4 /socket/ipv6_async 1055s ok 5 /socket/ipv6_v4mapped 1058s ok 6 /socket/close_graceful 1058s # slow test /socket/close_graceful executed in 1.00 secs 1058s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1058s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1058s # Executing: glib/socket.test 1058s ok 8 /socket/fd_reuse 1058s ok 9 /socket/address 1058s ok 10 /socket/unix-from-fd 1058s ok 11 /socket/unix-connection 1058s ok 12 /socket/unix-connection-ancillary-data 1058s ok 13 /socket/source-postmortem 1058s ok 14 /socket/read_write 1058s ok 15 /socket/read_writev 1058s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1058s ok 16 /socket/receive_bytes 1058s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1058s ok 17 /socket/receive_bytes_from 1058s # Start of ipv4_sync tests 1058s ok 18 /socket/ipv4_sync/datagram 1058s # Start of datagram tests 1058s ok 19 /socket/ipv4_sync/datagram/timeouts 1058s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1058s # End of datagram tests 1058s # End of ipv4_sync tests 1058s # Start of ipv6_sync tests 1058s ok 20 /socket/ipv6_sync/datagram 1058s # Start of datagram tests 1058s ok 21 /socket/ipv6_sync/datagram/timeouts 1058s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1058s # End of datagram tests 1058s # End of ipv6_sync tests 1058s # Start of reuse tests 1058s ok 22 /socket/reuse/tcp 1058s ok 23 /socket/reuse/udp 1058s # End of reuse tests 1058s # Start of get_available tests 1058s ok 24 /socket/get_available/datagram 1058s ok 25 /socket/get_available/stream 1058s # End of get_available tests 1058s # Start of credentials tests 1058s # Supported on this OS: GCredentials:linux-ucred:pid=0 1058s ok 26 /socket/credentials/tcp_client 1058s # Supported on this OS: GCredentials:linux-ucred:pid=0 1058s ok 27 /socket/credentials/tcp_server 1058s # Supported on this OS: GCredentials:linux-ucred:pid=2926,uid=1000,gid=1000 1058s ok 28 /socket/credentials/unix_socketpair 1058s # End of credentials tests 1058s # End of socket tests 1058s TAP version 14 1058s # random seed: R02S8b06e9d7396c5ea9460f5db223380600 1058s 1..21 1058s # Start of bytes tests 1058s ok 1 /bytes/new 1058s ok 2 /bytes/new-take 1058s ok 3 /bytes/new-static 1058s ok 4 /bytes/new-with-free-func 1058s ok 5 /bytes/new-from-bytes 1058s ok 6 /bytes/new-from-bytes-slice 1058s ok 7 /bytes/new-from-bytes-shared-ref 1058s ok 8 /bytes/hash 1058s ok 9 /bytes/equal 1058s ok 10 /bytes/compare 1058s ok 11 /bytes/null 1058s ok 12 /bytes/get-region 1058s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1058s ok 13 /bytes/unref-null 1058s # Start of to-data tests 1058s ok 14 /bytes/to-data/transferred 1058s ok 15 /bytes/to-data/two-refs 1058s ok 16 /bytes/to-data/non-malloc 1058s ok - glib/socket.test 1058s # Running test: glib/bytes.test 1058s ok - glib/bytes.test 1058s # Running test: glib/memory-input-stream.test 1058s ok - glib/memory-input-stream.test 1058s # Running test: glib/utils-c-11.test 1058s ok - glib/utils-c-11.test 1058s # Running test: glib/rand.test 1058s ok 17 /bytes/to-data/different-free-func 1058s # End of to-data tests 1058s # Start of to-array tests 1058s ok 18 /bytes/to-array/transferred 1058s ok 19 /bytes/to-array/two-refs 1058s ok 20 /bytes/to-array/non-malloc 1058s # Start of transferred tests 1058s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1058s ok 21 /bytes/to-array/transferred/oversize # SKIP Skipping test as guint is not smaller than gsize 1058s # End of transferred tests 1058s # End of to-array tests 1058s # End of bytes tests 1058s TAP version 14 1058s # random seed: R02S9581d791caacefeb58cd18c6cf98a429 1058s 1..6 1058s # Start of memory-input-stream tests 1058s ok 1 /memory-input-stream/read-chunks 1058s ok 2 /memory-input-stream/async 1058s ok 3 /memory-input-stream/seek 1058s ok 4 /memory-input-stream/truncate 1058s ok 5 /memory-input-stream/read-bytes 1058s ok 6 /memory-input-stream/from-bytes 1058s # End of memory-input-stream tests 1058s TAP version 14 1058s # random seed: R02Sfa9e6fe800ea5f08f376ce6d1f1db087 1058s 1..41 1058s # Start of utils tests 1058s ok 1 /utils/language-names 1058s ok 2 /utils/locale-variants 1058s ok 3 /utils/version 1058s ok 4 /utils/appname 1058s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1058s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1058s ok 5 /utils/prgname-thread-safety 1058s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1058s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1058s ok 6 /utils/tmpdir 1058s ok 7 /utils/basic_bits 1058s ok 8 /utils/bits 1058s ok 9 /utils/swap 1058s ok 10 /utils/find-program 1058s ok 11 /utils/find-program-for-path 1058s ok 12 /utils/debug 1058s ok 13 /utils/codeset 1058s ok 14 /utils/codeset2 1058s ok 15 /utils/console-charset 1058s ok 16 /utils/gettext 1058s ok 17 /utils/username 1058s ok 18 /utils/realname 1058s ok 19 /utils/hostname 1058s ok 20 /utils/xdgdirs 1058s ok 21 /utils/specialdir 1058s # NAME: Ubuntu 1058s ok 22 /utils/os-info 1058s ok 23 /utils/clear-pointer 1058s ok 24 /utils/clear-pointer-cast 1058s ok 25 /utils/take-pointer 1058s ok 26 /utils/clear-source 1058s ok 27 /utils/misc-mem 1058s # /utils/aligned-mem summary: Aligned memory allocator 1058s # Alignment must not be zero 1058s # Alignment must be a power of two 1058s # Alignment must be a multiple of sizeof(void*) 1058s ok 28 /utils/aligned-mem 1058s # /utils/free-sized summary: Check that g_free_sized() works 1058s ok 29 /utils/free-sized 1058s ok 30 /utils/nullify 1058s ok 31 /utils/atexit 1058s ok 32 /utils/check-setuid 1058s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1058s ok 33 /utils/int-limits 1058s ok 34 /utils/clear-list 1058s ok 35 /utils/clear-slist 1058s ok 36 /utils/steal-handle-id 1058s # Start of specialdir tests 1058s ok 37 /utils/specialdir/desktop 1058s # End of specialdir tests 1058s # Start of clear-pointer tests 1058s ok 38 /utils/clear-pointer/side-effects 1058s # End of clear-pointer tests 1058s # Start of aligned-mem tests 1058s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1058s ok 39 /utils/aligned-mem/alignment 1058s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1058s ok 40 /utils/aligned-mem/zeroed 1058s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1058s ok 41 /utils/aligned-mem/free-sized 1058s # Start of subprocess tests 1058s # End of subprocess tests 1058s # End of aligned-mem tests 1058s # End of utils tests 1058s TAP version 14 1058s # random seed: R02S53064447b2ecf322d74b1c2fe5666534 1058s 1..2 1058s # Start of rand tests 1058s ok 1 /rand/test-rand 1058s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1058s ok 2 /rand/double-range 1058s # End of rand tests 1058s ok - glib/rand.test 1058s # Running test: glib/io-stream.test 1058s TAP version 14 1058s # random seed: R02S0591744f0b43c2f314812d643a42fb6f 1058s 1..3 1058s # Start of io-stream tests 1058s ok 1 /io-stream/copy-chunks 1058s # Start of close tests 1058s # Start of async tests 1058s ok 2 /io-stream/close/async/memory 1058s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1058s ok 3 /io-stream/close/async/file 1058s # End of async tests 1058s # End of close tests 1058s # End of io-stream tests 1058s ok - glib/io-stream.test 1058s # Running test: glib/permission.test 1058s TAP version 14 1058s # random seed: R02S851325f0dab1fd44f3de3f67ffd14ec0 1058s 1..1 1058s # Start of permission tests 1058s ok 1 /permission/simple 1058s # End of permission tests 1058s ok - glib/permission.test 1058s # Running test: glib/macros-c-11.test 1058s TAP version 14 1058s # random seed: R02S0c1674776d3bd8debacddab8b10bc1e0 1058s 1..4 1058s # Start of C tests 1058s ok 1 /C/standard-11 1058s # End of C tests 1058s # Start of alignof tests 1058s ok 2 /alignof/fallback 1058s # End of alignof tests 1058s # Start of assert tests 1058s ok 3 /assert/static 1058s # End of assert tests 1058s # Start of struct tests 1058s ok 4 /struct/sizeof_member 1058s # End of struct tests 1058s ok - glib/macros-c-11.test 1058s # Running test: glib/io-channel.test 1058s TAP version 14 1058s # random seed: R02Sef35ec2dfca843bf174a61b1578c2e96 1058s 1..2 1058s # Start of io-channel tests 1058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/home 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/cache 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/system-config1:/tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/system-config2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/config 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/system-data1:/tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/system-data2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/data 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/state 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_7YBR52/io-channel/read-write/.dirs/runtime 1058s # Line one 1058s # 1058s # Line two 1058s # 1058s # Line three 1058s # 1058s # /* Hello */ 1058s # 1058s # \x1234\x567890\x6666 1058s # 1058s # read 62 bytes, wrote 62 bytes 1058s ok 1 /io-channel/read-write 1058s # Start of read-line tests 1058s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/home 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/cache 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/system-config1:/tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/system-config2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/config 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/system-data1:/tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/system-data2 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/data 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/state 1058s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_io-channel_7YBR52/io-channel/read-line/embedded-nuls/.dirs/runtime 1058s # /io-channel/read-line/embedded-nuls summary: Test that reading a line containing embedded nuls works when using non-standard line terminators. 1058s ok - glib/io-channel.test 1058s # Running test: glib/srvtarget.test 1058s ok 2 /io-channel/read-line/embedded-nuls 1058s # End of read-line tests 1058s # End of io-channel tests 1058s TAP version 14 1058s # random seed: R02S6ad752f94f4508f3c0ddfbf48f31ed44 1058s 1..1 1058s # Start of srvtarget tests 1059s ok - glib/srvtarget.test 1059s ok 1 /srvtarget/srv-target-ordering 1059s # slow test /srvtarget/srv-target-ordering executed in 0.60 secs 1059s # End of srvtarget tests 1059s # Running test: glib/appmonitor.test 1059s TAP version 14 1059s # random seed: R02S52f77b894279f6f6f15e2c2daf4f3cf7 1059s 1..1 1059s # Start of monitor tests 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_ULXA62/monitor/app/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_ULXA62/monitor/app/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/runtime 1059s # Using data directory: /tmp/test_appmonitor_ULXA62/monitor/app/.dirs/data 1059s ok 1 /monitor/app 1059s # End of monitor tests 1059s ok - glib/appmonitor.test 1059s TAP version 14 1059s # random seed: R02Sbde725501ca4bfa82d2453edd7fbb59e 1059s # Running test: glib/param.test 1059s 1..32 1059s # Start of param tests 1059s ok 1 /param/value 1059s ok 2 /param/strings 1059s ok 3 /param/qdata 1059s ok 4 /param/validate 1059s ok 5 /param/convert 1059s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1059s ok 7 /param/default 1059s ok 8 /param/is-valid-name 1059s # Start of invalid-name tests 1059s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1059s ok 9 /param/invalid-name/colon 1059s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1059s ok 10 /param/invalid-name/first-char 1059s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1059s ok 11 /param/invalid-name/empty 1059s # End of invalid-name tests 1059s # Start of implement tests 1059s # Start of subprocess tests 1059s # End of subprocess tests 1059s # End of implement tests 1059s # End of param tests 1059s # Start of value tests 1059s ok 12 /value/transform 1059s # End of value tests 1059s # Start of paramspec tests 1059s ok 13 /paramspec/char 1059s ok 14 /paramspec/uchar 1059s ok 15 /paramspec/int 1059s ok 16 /paramspec/uint 1059s ok 17 /paramspec/long 1059s ok 18 /paramspec/ulong 1059s ok 19 /paramspec/int64 1059s ok 20 /paramspec/uint64 1059s ok 21 /paramspec/float 1059s ok 22 /paramspec/double 1059s ok 23 /paramspec/unichar 1059s ok 24 /paramspec/param 1059s ok 25 /paramspec/null-param 1059s ok 26 /paramspec/string 1059s ok 27 /paramspec/override 1059s ok 28 /paramspec/gtype 1059s ok 29 /paramspec/variant 1059s ok 30 /paramspec/custom 1059s ok 31 /paramspec/pool 1059s # Start of variant tests 1059s ok 32 /paramspec/variant/cmp 1059s # End of variant tests 1059s # End of paramspec tests 1059s ok - glib/param.test 1059s # Running test: glib/642026-ec.test 1059s TAP version 14 1059s # random seed: R02S88c51533558c7687b78c3d44908d1720 1059s 1..1 1059s # Start of glib tests 1059s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1059s ok - glib/642026-ec.test 1059s ok 1 /glib/642026 1059s # End of glib tests 1059s # Running test: glib/registered-type-info.test 1059s ok - glib/registered-type-info.test 1059s TAP version 14 1059s # random seed: R02Sea932dc05bfd02a18268bbe767c3eeb7 1059s 1..1 1059s # Start of registered-type-info tests 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_VIRT52/registered-type-info/boxed/.dirs/runtime 1059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1059s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1059s # Expecting CClosure to not be boxed 1059s # Expecting TypeCValue to not be boxed 1059s # Expecting InitiallyUnownedClass to not be boxed 1059s # Expecting BookmarkFile to be boxed 1059s # Expecting Closure to be boxed 1059s # Running test: glib/power-profile-monitor-dbus.test 1059s # Expecting Object to not be boxed 1059s ok 1 /registered-type-info/boxed 1059s # End of registered-type-info tests 1059s TAP version 13 1059s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1059s 1..1 1059s ok - glib/power-profile-monitor-dbus.test 1059s # Running test: glib/throws.test 1059s TAP version 14 1059s # random seed: R02Sd2f435005da0040aaf8506d71c258296 1059s 1..3 1059s # Start of throws tests 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_P52052/throws/invoke-gerror/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_P52052/throws/invoke-gerror/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_P52052/throws/invoke-gerror/.dirs/runtime 1059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1059s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1059s ok 1 /throws/invoke-gerror 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_P52052/throws/vfunc-can-throw-gerror/.dirs/runtime 1059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1059s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1059s ok 2 /throws/vfunc-can-throw-gerror 1059s ok - glib/throws.test 1059s # Running test: glib/spawn-test.test 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_P52052/throws/callback-can-throw-gerror/.dirs/runtime 1059s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1059s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1059s ok 3 /throws/callback-can-throw-gerror 1059s # End of throws tests 1059s TAP version 14 1059s # random seed: R02S3df48134ea5d6e4c16254c2a03891c64 1059s 1..2 1059s # Start of spawn tests 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_GUC152/spawn/basics/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_GUC152/spawn/basics/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_GUC152/spawn/basics/.dirs/runtime 1059s ok 1 /spawn/basics 1059s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/home 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/cache 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/system-config2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/config 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/system-data2 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/data 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/state 1059s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_GUC152/spawn/stdio-overwrite/.dirs/runtime 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1059s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1059s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1059s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1059s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1059s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1059s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1059s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1059s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1059s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1059s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1059s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1059s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1060s ok - glib/spawn-test.test 1060s # Running test: glib/refstring.test 1060s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1060s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1060s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1060s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1060s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1060s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1060s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1060s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1060s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1060s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1060s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1060s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1060s # Fetching GSpawn result with stdin open, stdout open, stderr open 1060s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1060s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1060s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1060s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1060s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1060s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1060s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1060s ok 2 /spawn/stdio-overwrite 1060s # End of spawn tests 1060s TAP version 14 1060s # random seed: R02Sbc90283f69e71612ce17105e1cf58b80 1060s 1..8 1060s # Start of refstring tests 1060s # s = 'hello, world' (0x7c8bfd0) 1060s ok 1 /refstring/base 1060s ok 2 /refstring/length 1060s ok 3 /refstring/length-auto 1060s ok 4 /refstring/length-nuls 1060s # s = 'hello, world' (0x7c840f8) 1060s # p = s = 'hello, world' (0x7c840f8) 1060s # releasing p[0x7c840f8] ('hello, world') 1060s # p = 'goodbye, world' (0x7c841c8) 1060s # releasing p[0x7c841c8] ('goodbye, world') 1060s # releasing s[0x7c840f8] ('hello, world') 1060s ok 5 /refstring/intern 1060s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1060s ok 6 /refstring/hash_equal 1060s # /refstring/equal summary: Test g_ref_string_equal() standalone 1060s ok 7 /refstring/equal 1061s ok 8 /refstring/intern-thread-safety 1061s # slow test /refstring/intern-thread-safety executed in 1.27 secs 1061s # End of refstring tests 1061s ok - glib/refstring.test 1061s # Running test: glib/network-address.test 1061s TAP version 14 1061s # random seed: R02S1190cb0b0b7dd283023c735b93c07685 1061s 1..72 1061s # Start of network-address tests 1061s ok 1 /network-address/basic 1061s ok 2 /network-address/scope-id 1061s ok 3 /network-address/uri-scope-id 1061s ok 4 /network-address/to-string 1061s # Start of parse-host tests 1061s ok 5 /network-address/parse-host/0 1061s ok 6 /network-address/parse-host/1 1061s ok 7 /network-address/parse-host/2 1061s ok 8 /network-address/parse-host/3 1061s ok 9 /network-address/parse-host/4 1061s ok 10 /network-address/parse-host/5 1061s ok 11 /network-address/parse-host/6 1061s ok 12 /network-address/parse-host/7 1061s ok 13 /network-address/parse-host/8 1061s ok 14 /network-address/parse-host/9 1061s ok 15 /network-address/parse-host/10 1061s ok 16 /network-address/parse-host/11 1061s ok 17 /network-address/parse-host/12 1061s ok 18 /network-address/parse-host/13 1061s # End of parse-host tests 1061s # Start of parse-uri tests 1061s ok 19 /network-address/parse-uri/0 1061s ok 20 /network-address/parse-uri/1 1061s ok 21 /network-address/parse-uri/2 1061s ok 22 /network-address/parse-uri/3 1061s ok 23 /network-address/parse-uri/4 1061s ok 24 /network-address/parse-uri/5 1061s ok 25 /network-address/parse-uri/6 1061s ok 26 /network-address/parse-uri/7 1061s ok 27 /network-address/parse-uri/8 1061s ok 28 /network-address/parse-uri/9 1061s # End of parse-uri tests 1061s # Start of resolve-address tests 1061s # Input: 192.168.1.2 1061s ok 29 /network-address/resolve-address/0 1061s # Input: fe80::42 1061s ok 30 /network-address/resolve-address/1 1061s # Input: 192.168.1.2:80 1061s ok 31 /network-address/resolve-address/2 1061s # Input: [fe80::42] 1061s ok 32 /network-address/resolve-address/3 1061s # Input: [fe80::42]:80 1061s ok 33 /network-address/resolve-address/4 1061s # Input: 192.168.258 1061s ok 34 /network-address/resolve-address/5 1061s # Input: 192.11010306 1061s ok 35 /network-address/resolve-address/6 1061s # Input: 3232235778 1061s ok 36 /network-address/resolve-address/7 1061s # Input: 0300.0250.0001.0001 1061s ok 37 /network-address/resolve-address/8 1061s # Input: 0xC0.0xA8.0x01.0x02 1061s ok 38 /network-address/resolve-address/9 1061s # Input: 0xc0.0xa8.0x01.0x02 1061s ok 39 /network-address/resolve-address/10 1061s # Input: 0xc0a80102 1061s ok 40 /network-address/resolve-address/11 1061s # End of resolve-address tests 1061s # Start of loopback tests 1061s ok 41 /network-address/loopback/basic 1061s ok 42 /network-address/loopback/sync 1061s ok 43 /network-address/loopback/async 1061s # End of loopback tests 1061s # Start of localhost tests 1061s ok 44 /network-address/localhost/async 1061s ok 45 /network-address/localhost/sync 1061s # End of localhost tests 1061s # Start of happy-eyeballs tests 1061s ok 46 /network-address/happy-eyeballs/basic 1061s ok 47 /network-address/happy-eyeballs/parallel 1061s ok 48 /network-address/happy-eyeballs/slow-ipv4 1061s ok 49 /network-address/happy-eyeballs/slow-ipv6 1061s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1065s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1065s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1065s ok - glib/network-address.test 1065s # Running test: glib/markup-escape.test 1065s ok - glib/markup-escape.test 1065s # Running test: glib/file-thumbnail.test 1065s ok - glib/file-thumbnail.test 1065s # Running test: glib/deftype.test 1065s ok - glib/deftype.test 1065s # Running test: glib/accumulator.test 1065s ok - glib/accumulator.test 1065s # Running test: glib/cxx-17.test 1065s ok - glib/cxx-17.test 1065s # Running test: glib/type-flags.test 1065s ok - glib/type-flags.test 1065s # Running test: glib/properties-refcount1.test 1065s # Executing: glib/properties-refcount1.test 1065s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1065s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1065s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1065s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1065s # /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. 1065s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1065s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1065s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1065s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1065s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1065s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1065s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1065s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1065s ok 57 /network-address/happy-eyeballs/both-error 1065s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1065s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1065s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1065s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1065s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1065s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1065s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1065s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1065s # End of happy-eyeballs tests 1065s # End of network-address tests 1065s # Start of gresolver tests 1065s # Start of resolve-address tests 1065s # Input: 192.168.1.2 1065s ok 61 /gresolver/resolve-address/0 1065s # Input: fe80::42 1065s ok 62 /gresolver/resolve-address/1 1065s # Input: 192.168.1.2:80 1065s # Error: Error resolving ?192.168.1.2:80?: Name or service not known 1065s ok 63 /gresolver/resolve-address/2 1065s # Input: [fe80::42] 1065s # Error: Error resolving ?[fe80::42]?: Name or service not known 1065s ok 64 /gresolver/resolve-address/3 1065s # Input: [fe80::42]:80 1065s # Error: Error resolving ?[fe80::42]:80?: Name or service not known 1065s ok 65 /gresolver/resolve-address/4 1065s # Input: 192.168.258 1065s # Error: Error resolving ?192.168.258?: Name or service not known 1065s ok 66 /gresolver/resolve-address/5 1065s # Input: 192.11010306 1065s # Error: Error resolving ?192.11010306?: Name or service not known 1065s ok 67 /gresolver/resolve-address/6 1065s # Input: 3232235778 1065s # Error: Error resolving ?3232235778?: Name or service not known 1065s ok 68 /gresolver/resolve-address/7 1065s # Input: 0300.0250.0001.0001 1065s # Error: Error resolving ?0300.0250.0001.0001?: Name or service not known 1065s ok 69 /gresolver/resolve-address/8 1065s # Input: 0xC0.0xA8.0x01.0x02 1065s # Error: Error resolving ?0xC0.0xA8.0x01.0x02?: Name or service not known 1065s ok 70 /gresolver/resolve-address/9 1065s # Input: 0xc0.0xa8.0x01.0x02 1065s # Error: Error resolving ?0xc0.0xa8.0x01.0x02?: Name or service not known 1065s ok 71 /gresolver/resolve-address/10 1065s # Input: 0xc0a80102 1065s # Error: Error resolving ?0xc0a80102?: Name or service not known 1065s ok 72 /gresolver/resolve-address/11 1065s # End of resolve-address tests 1065s # End of gresolver tests 1065s TAP version 14 1065s # random seed: R02S923e377797df8d724a580162bb5efbca 1065s 1..41 1065s # Start of markup tests 1065s ok 1 /markup/format 1065s # Start of escape-text tests 1065s ok 2 /markup/escape-text/0 1065s ok 3 /markup/escape-text/1 1065s ok 4 /markup/escape-text/2 1065s ok 5 /markup/escape-text/3 1065s ok 6 /markup/escape-text/4 1065s ok 7 /markup/escape-text/5 1065s ok 8 /markup/escape-text/6 1065s ok 9 /markup/escape-text/7 1065s ok 10 /markup/escape-text/8 1065s ok 11 /markup/escape-text/9 1065s ok 12 /markup/escape-text/10 1065s ok 13 /markup/escape-text/11 1065s ok 14 /markup/escape-text/12 1065s ok 15 /markup/escape-text/13 1065s ok 16 /markup/escape-text/14 1065s ok 17 /markup/escape-text/15 1065s ok 18 /markup/escape-text/16 1065s ok 19 /markup/escape-text/17 1065s ok 20 /markup/escape-text/18 1065s ok 21 /markup/escape-text/19 1065s ok 22 /markup/escape-text/20 1065s ok 23 /markup/escape-text/21 1065s ok 24 /markup/escape-text/22 1065s # End of escape-text tests 1065s # Start of escape-unichar tests 1065s ok 25 /markup/escape-unichar/0 1065s ok 26 /markup/escape-unichar/1 1065s ok 27 /markup/escape-unichar/2 1065s ok 28 /markup/escape-unichar/3 1065s ok 29 /markup/escape-unichar/4 1065s ok 30 /markup/escape-unichar/5 1065s ok 31 /markup/escape-unichar/6 1065s ok 32 /markup/escape-unichar/7 1065s ok 33 /markup/escape-unichar/8 1065s ok 34 /markup/escape-unichar/9 1065s ok 35 /markup/escape-unichar/10 1065s ok 36 /markup/escape-unichar/11 1065s ok 37 /markup/escape-unichar/12 1065s ok 38 /markup/escape-unichar/13 1065s ok 39 /markup/escape-unichar/14 1065s ok 40 /markup/escape-unichar/15 1065s ok 41 /markup/escape-unichar/16 1065s # End of escape-unichar tests 1065s # End of markup tests 1065s TAP version 14 1065s # random seed: R02S565422a1fd58f52d4ade56d9d6fde18d 1065s 1..7 1065s # Start of file-thumbnail tests 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/runtime 1065s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 1 /file-thumbnail/fail 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/runtime 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 2 /file-thumbnail/size-priority 1065s # Start of valid tests 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/runtime 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 3 /file-thumbnail/valid/normal 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/runtime 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 4 /file-thumbnail/valid/large 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/runtime 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 5 /file-thumbnail/valid/x-large 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/runtime 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 6 /file-thumbnail/valid/xx-large 1065s # End of valid tests 1065s # Start of unknown tests 1065s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/home 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/cache 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/system-config2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/config 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/system-data2 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/data 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/state 1065s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/runtime 1065s # Created test thumbnail at /tmp/test_file-thumbnail_284Z52/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1065s ok 7 /file-thumbnail/unknown/super-large 1065s # End of unknown tests 1065s # End of file-thumbnail tests 1065s TAP version 14 1065s # random seed: R02S338382a0fd7762786a8fc5669f3e9887 1065s 1..1 1065s # Start of gobject tests 1065s ok 1 /gobject/accumulator 1065s # End of gobject tests 1065s TAP version 14 1065s # random seed: R02S854c64244cf42b0b60c85f8238b2b154 1065s 1..2 1065s # Start of gtask tests 1065s # 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. 1065s ok 1 /gtask/name 1065s # Start of name tests 1065s # 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. 1065s ok 2 /gtask/name/macro-wrapper 1065s # End of name tests 1065s # End of gtask tests 1065s TAP version 14 1065s # random seed: R02S6bb13c1423b2e8a0a2b7628488c6980a 1065s 1..4 1065s # Start of type tests 1065s # Start of flags tests 1065s ok 1 /type/flags/interface 1065s ok 2 /type/flags/final 1065s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1065s ok 3 /type/flags/deprecated 1065s # Start of final tests 1065s ok 4 /type/flags/final/instance-check 1065s # End of final tests 1065s # End of flags tests 1065s # End of type tests 1065s TAP version 14 1065s # random seed: R02S383d0a7eff3deac547dd7247b8b162fa 1065s 1..1 1065s # Start of gobject tests 1065s # Start of refcount tests 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .c 1065s # .f 1065s # .d 1065s # .e 1065s # .b 1065s # .f 1065s # .d 1065s # .c 1065s # .e 1065s # .b 1065s # .f 1065s # .d 1065s # .c 1065s # .e 1065s # .d 1065s # .f 1065s # .b 1065s # .c 1065s # .e 1065s # .d 1065s # .f 1065s # .b 1065s # .c 1065s # .e 1065s # .d 1065s # .f 1065s # .b 1065s # .c 1065s # .e 1065s # .d 1065s # .f 1065s # .b 1065s # .c 1065s # .e 1065s # .d 1065s # .f 1065s # .b 1065s # .e 1065s # .c 1065s # .d 1065s # .f 1065s # .b 1065s # .e 1065s # .c 1065s # .d 1065s # .f 1065s # .b 1065s # .e 1065s # .d 1065s # .c 1065s # .f 1065s # .b 1065s # .e 1065s # .d 1065s # .f 1065s # .c 1065s # .b 1065s # .e 1065s # .d 1065s # .f 1065s # .c 1065s # .b 1065s # .d 1065s # .e 1065s # .f 1065s # .c 1065s # .d 1065s # .b 1065s # .e 1065s # .f 1065s # .c 1065s # .d 1065s # .e 1065s # .b 1065s # .f 1065s # .c 1065s # .d 1065s # .e 1065s # .f 1065s # .b 1065s # .c 1065s # .d 1065s # .f 1065s # .e 1065s # .b 1065s # .c 1065s # .d 1065s # .f 1065s # .e 1065s ok 1 /gobject/refcount/properties-1 1065s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1065s # End of refcount tests 1065s # End of gobject tests 1065s ok - glib/properties-refcount1.test 1065s # Running test: glib/signalgroup.test 1065s TAP version 14 1065s # random seed: R02S3e69f59c9c51c59dde2ec962aefb6406 1065s 1..9 1065s # Start of GObject tests 1065s # Start of SignalGroup tests 1065s ok 1 /GObject/SignalGroup/invalid 1065s ok 2 /GObject/SignalGroup/simple 1065s ok 3 /GObject/SignalGroup/changing-target 1065s ok 4 /GObject/SignalGroup/blocking 1065s ok 5 /GObject/SignalGroup/weak-ref-target 1065s ok 6 /GObject/SignalGroup/connect-object 1065s ok 7 /GObject/SignalGroup/signal-parsing 1065s ok 8 /GObject/SignalGroup/properties 1065s ok 9 /GObject/SignalGroup/interface 1065s # Start of signal-parsing tests 1065s # End of signal-parsing tests 1065s # End of SignalGroup tests 1065s # End of GObject tests 1065s ok - glib/signalgroup.test 1065s # Running test: glib/refcount-macro.test 1065s TAP version 14 1065s # random seed: R02S2f0dc81e16057a37749b707443860e20 1065s 1..4 1065s # Start of refcount tests 1065s ok 1 /refcount/grefcount 1065s ok 2 /refcount/gatomicrefcount 1065s # Start of grefcount tests 1065s ok 3 /refcount/grefcount/saturation 1065s # End of grefcount tests 1065s # Start of gatomicrefcount tests 1065s ok 4 /refcount/gatomicrefcount/saturation 1065s # End of gatomicrefcount tests 1065s # End of refcount tests 1065s ok - glib/refcount-macro.test 1065s # Running test: glib/macros.test 1065s TAP version 14 1065s # random seed: R02Sb52f5fc67c739bab579c631ee210ecd0 1065s 1..3 1065s # Start of alignof tests 1065s ok 1 /alignof/fallback 1065s # End of alignof tests 1065s # Start of assert tests 1065s ok 2 /assert/static 1065s # End of assert tests 1065s # Start of struct tests 1065s ok 3 /struct/sizeof_member 1065s # End of struct tests 1065s ok - glib/macros.test 1065s # Running test: glib/basics-gobject.test 1065s TAP version 14 1065s # random seed: R02Sff56d24d99278ad5d2e39ce8375b0210 1065s 1..1 1065s # Start of gobject tests 1065s # private data during initialization: 54321 == 54321 1065s # MAIN: emit test-signal: 1065s # ::test_signal default_handler called 1065s # ::test_signal default_handler called 1065s # ::test_signal default_handler called 1065s # signal return: "" 1065s # MAIN: call iface print-string on test and derived object: 1065s # Iface-FOO: "iface-string-from-test-type" from 0x5d2dbd8 1065s # Iface-BAR: "iface-string-from-derived-type" from 0x5d2daa8 1065s # chaining: 1065s # Iface-FOO: "iface-string-from-derived-type" from 0x5d2daa8 1065s # private data after initialization: 54321 == 54321 1065s ok 1 /gobject/basics 1065s # End of gobject tests 1065s ok - glib/basics-gobject.test 1065s # Running test: glib/deprecated-properties.test 1065s TAP version 14 1065s # random seed: R02Sd0ab834a617c7a0b15f735c13f4ae5d1 1065s 1..3 1065s # Start of deprecated-properties tests 1065s ok 1 /deprecated-properties/construct 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1065s ok 2 /deprecated-properties/default-construct 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1065s ok 3 /deprecated-properties/set 1065s # End of deprecated-properties tests 1065s TAP version 14 1065s # random seed: R02S6d0e1e47e3e2bb9a4b69454087455502 1065s 1..1 1065s # Start of properties tests 1065s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1065s ok 1 /properties/notify-in-init 1065s # End of properties tests 1065s TAP version 14 1065s # random seed: R02Sc9ccc3d49ca28b0ab8b5f3168c51c487 1065s 1..18 1065s # Start of cancellable tests 1065s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1065s ok 2 /cancellable/null 1065s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1065s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1065s ok 4 /cancellable/connect-to-disposing-callback 1065s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 1 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 0 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 1 1065s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1065s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1065s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1065s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 1 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 0 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 1 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 0 1065s # Toggle reference callback for GCancellable (0xaf726f0), last: 1 1065s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1065s # /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 1065s ok - glib/deprecated-properties.test 1065s # Running test: glib/notify-init.test 1065s ok - glib/notify-init.test 1065s # Running test: glib/cancellable.test 1066s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1066s # /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 1066s ok 11 /cancellable/resets-on-cancel-callback-hangs 1066s ok 12 /cancellable/poll-fd 1066s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1066s ok 13 /cancellable/poll-fd-cancelled 1066s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1066s ok 14 /cancellable/poll-fd-cancelled-threaded 1066s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1066s ok 15 /cancellable/cancel-reset-races 1066s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1066s ok 16 /cancellable/cancel-reset-connect-races 1066s # End of cancellable tests 1066s # Start of cancellable-source tests 1066s # /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) 1066s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1067s ok 17 /cancellable-source/threaded-dispose 1067s # slow test /cancellable-source/threaded-dispose executed in 0.78 secs 1067s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1067s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1067s ok 18 /cancellable-source/can-be-fired-multiple-times 1067s # End of cancellable-source tests 1067s ok - glib/cancellable.test 1067s # Running test: glib/charset.test 1067s ok - glib/charset.test 1067s TAP version 14 1067s # random seed: R02Sfc84a904053bb6aabeb9182eee232adc 1067s 1..2 1067s # Start of charset tests 1067s # Test 0 1067s # Test 1 1067s # Test 2 1067s # Test 3 1067s ok 1 /charset/language_names_with_category 1067s ok 2 /charset/language_names_with_category_async 1067s # End of charset tests 1067s # Running test: glib/utf8-pointer.test 1067s TAP version 14 1067s # random seed: R02Se72df58237b7e658ac8ca92fd86fdeca 1067s 1..3 1067s # Start of utf8 tests 1069s ok - glib/utf8-pointer.test 1069s ok 1 /utf8/offsets 1069s # slow test /utf8/offsets executed in 0.99 secs 1069s ok 2 /utf8/lengths 1069s ok 3 /utf8/find 1069s # End of utf8 tests 1069s TAP version 14 1069s # random seed: R02Se22e08bac514bd8ccce0e1e17df25686 1069s 1..3 1069s # Start of debug-controller tests 1069s # Start of dbus tests 1069s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1069s # Running test: glib/debugcontroller.test 1069s ok - glib/debugcontroller.test 1069s # Running test: glib/file.test 1069s # Executing: glib/file.test 1069s # GLib-GIO-DEBUG: Debug output enabled 1069s # GLib-GIO-DEBUG: Debug output disabled 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 1 /debug-controller/dbus/basic 1069s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 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 # GLib-DEBUG: setenv()/putenv() are 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 # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1069s ok 2 /debug-controller/dbus/duplicate 1069s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1069s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1069s # End of dbus tests 1069s # End of debug-controller tests 1069s TAP version 14 1069s # random seed: R02S5dceeb6ef18cb2d878f2718d9ccd912f 1069s 1..55 1069s # Start of file tests 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/basic/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/basic/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/basic/.dirs/system-config1:/tmp/test_file_LEP452/file/basic/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/basic/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/basic/.dirs/system-data1:/tmp/test_file_LEP452/file/basic/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/basic/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/basic/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/basic/.dirs/runtime 1069s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1069s ok 1 /file/basic 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/build-filename/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/build-filename/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/build-filename/.dirs/system-config1:/tmp/test_file_LEP452/file/build-filename/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/build-filename/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/build-filename/.dirs/system-data1:/tmp/test_file_LEP452/file/build-filename/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/build-filename/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/build-filename/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/build-filename/.dirs/runtime 1069s ok 2 /file/build-filename 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/build-filenamev/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/build-filenamev/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/build-filenamev/.dirs/system-config1:/tmp/test_file_LEP452/file/build-filenamev/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/build-filenamev/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/build-filenamev/.dirs/system-data1:/tmp/test_file_LEP452/file/build-filenamev/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/build-filenamev/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/build-filenamev/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/build-filenamev/.dirs/runtime 1069s ok 3 /file/build-filenamev 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/parent/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/parent/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/parent/.dirs/system-config1:/tmp/test_file_LEP452/file/parent/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/parent/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/parent/.dirs/system-data1:/tmp/test_file_LEP452/file/parent/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/parent/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/parent/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/parent/.dirs/runtime 1069s ok 4 /file/parent 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/child/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/child/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/child/.dirs/system-config1:/tmp/test_file_LEP452/file/child/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/child/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/child/.dirs/system-data1:/tmp/test_file_LEP452/file/child/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/child/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/child/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/child/.dirs/runtime 1069s ok 5 /file/child 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/empty-path/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/empty-path/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/empty-path/.dirs/system-config1:/tmp/test_file_LEP452/file/empty-path/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/empty-path/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/empty-path/.dirs/system-data1:/tmp/test_file_LEP452/file/empty-path/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/empty-path/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/empty-path/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/empty-path/.dirs/runtime 1069s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1069s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1069s ok 6 /file/empty-path 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/type/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/type/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/type/.dirs/system-config1:/tmp/test_file_LEP452/file/type/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/type/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/type/.dirs/system-data1:/tmp/test_file_LEP452/file/type/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/type/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/type/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/type/.dirs/runtime 1069s ok 7 /file/type 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/parse-name/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/parse-name/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/parse-name/.dirs/system-config1:/tmp/test_file_LEP452/file/parse-name/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/parse-name/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/parse-name/.dirs/system-data1:/tmp/test_file_LEP452/file/parse-name/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/parse-name/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/parse-name/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/parse-name/.dirs/runtime 1069s ok 8 /file/parse-name 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/replace-load/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/replace-load/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/replace-load/.dirs/system-config1:/tmp/test_file_LEP452/file/replace-load/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/replace-load/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/replace-load/.dirs/system-data1:/tmp/test_file_LEP452/file/replace-load/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/replace-load/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/replace-load/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/replace-load/.dirs/runtime 1069s ok 9 /file/replace-load 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/replace-cancel/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/replace-cancel/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/replace-cancel/.dirs/system-config1:/tmp/test_file_LEP452/file/replace-cancel/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/replace-cancel/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/replace-cancel/.dirs/system-data1:/tmp/test_file_LEP452/file/replace-cancel/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/replace-cancel/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/replace-cancel/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/replace-cancel/.dirs/runtime 1069s # Bug Reference: https://bugzilla.gnome.org/629301 1069s ok 10 /file/replace-cancel 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/replace-symlink/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/replace-symlink/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/replace-symlink/.dirs/system-config1:/tmp/test_file_LEP452/file/replace-symlink/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/replace-symlink/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/replace-symlink/.dirs/system-data1:/tmp/test_file_LEP452/file/replace-symlink/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/replace-symlink/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/replace-symlink/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/replace-symlink/.dirs/runtime 1069s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1069s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1069s # Using temporary directory /tmp/test_file_LEP452/g_file_replace_symlink_NCS452 1069s ok 11 /file/replace-symlink 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_LEP452/file/async-new-tmp/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_LEP452/file/async-new-tmp/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-new-tmp/.dirs/runtime 1069s ok 12 /file/async-new-tmp 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-new-tmp-dir/.dirs/runtime 1069s ok 13 /file/async-new-tmp-dir 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-delete/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-delete/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-delete/.dirs/system-config1:/tmp/test_file_LEP452/file/async-delete/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-delete/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-delete/.dirs/system-data1:/tmp/test_file_LEP452/file/async-delete/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-delete/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-delete/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-delete/.dirs/runtime 1069s ok 14 /file/async-delete 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_LEP452/file/async-make-symlink/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_LEP452/file/async-make-symlink/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-make-symlink/.dirs/runtime 1069s ok 15 /file/async-make-symlink 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/copy-preserve-mode/.dirs/runtime 1069s # Current umask: 2 1069s # Vector 0 1069s # Vector 1 1069s # Vector 2 1069s # Vector 3 1069s # Vector 4 1069s # Vector 5 1069s # Vector 6 1069s # Vector 7 1069s # Vector 8 1069s # Vector 9 1069s # Vector 10 1069s ok 16 /file/copy-preserve-mode 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/copy-async-with-closures/.dirs/runtime 1069s ok 17 /file/copy-async-with-closures 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/measure/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/measure/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/measure/.dirs/system-config1:/tmp/test_file_LEP452/file/measure/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/measure/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/measure/.dirs/system-data1:/tmp/test_file_LEP452/file/measure/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/measure/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/measure/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/measure/.dirs/runtime 1069s ok 18 /file/measure 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/measure-async/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/measure-async/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/measure-async/.dirs/system-config1:/tmp/test_file_LEP452/file/measure-async/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/measure-async/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/measure-async/.dirs/system-data1:/tmp/test_file_LEP452/file/measure-async/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/measure-async/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/measure-async/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/measure-async/.dirs/runtime 1069s ok 19 /file/measure-async 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/load-bytes/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/load-bytes/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/load-bytes/.dirs/system-config1:/tmp/test_file_LEP452/file/load-bytes/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/load-bytes/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/load-bytes/.dirs/system-data1:/tmp/test_file_LEP452/file/load-bytes/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/load-bytes/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/load-bytes/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/load-bytes/.dirs/runtime 1069s ok 20 /file/load-bytes 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_LEP452/file/load-bytes-async/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_LEP452/file/load-bytes-async/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/load-bytes-async/.dirs/runtime 1069s ok 21 /file/load-bytes-async 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/load-bytes-4gb/.dirs/runtime 1069s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_LEP452/file/load-contents-4gb/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_LEP452/file/load-contents-4gb/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/load-contents-4gb/.dirs/runtime 1069s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/load-contents-4gb-async/.dirs/runtime 1069s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/.dirs/runtime 1069s ok 25 /file/writev 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/build-attribute-list-for-copy/.dirs/runtime 1069s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1069s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1069s # 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::* 1069s # 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::* 1069s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1069s # Attributes for copy: standard::size,xattr::* 1069s # Attributes for copy: standard::size,unix::mode,xattr::* 1069s ok 26 /file/build-attribute-list-for-copy 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/move_async/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/move_async/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/move_async/.dirs/system-config1:/tmp/test_file_LEP452/file/move_async/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/move_async/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/move_async/.dirs/system-data1:/tmp/test_file_LEP452/file/move_async/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/move_async/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/move_async/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/move_async/.dirs/runtime 1069s ok 27 /file/move_async 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_LEP452/file/move-async-with-closures/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_LEP452/file/move-async-with-closures/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/move-async-with-closures/.dirs/runtime 1069s ok 28 /file/move-async-with-closures 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/query-zero-length-content-type/.dirs/runtime 1069s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1069s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1069s ok 29 /file/query-zero-length-content-type 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_LEP452/file/query-default-handler-file/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_LEP452/file/query-default-handler-file/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/runtime 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/data/applications 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/config 1069s ok 30 /file/query-default-handler-file 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/runtime 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/data/applications 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/config 1069s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_LEP452/file/query-default-handler-file/.dirs/config to /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/config 1069s ok 31 /file/query-default-handler-file-async 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/runtime 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/data/applications 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/config 1069s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_LEP452/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/config 1069s ok 32 /file/query-default-handler-uri 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/runtime 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/data/applications 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/config 1069s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_LEP452/file/query-default-handler-uri/.dirs/config to /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/config 1069s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_LEP452/file/query-default-handler-uri-async/.dirs/config 1069s ok 33 /file/query-default-handler-uri-async 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/enumerator-cancellation/.dirs/runtime 1069s ok 34 /file/enumerator-cancellation 1069s # Start of async-create-delete tests 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_LEP452/file/async-create-delete/0/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_LEP452/file/async-create-delete/0/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-create-delete/0/.dirs/runtime 1069s ok 35 /file/async-create-delete/0 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_LEP452/file/async-create-delete/1/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_LEP452/file/async-create-delete/1/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-create-delete/1/.dirs/runtime 1069s ok 36 /file/async-create-delete/1 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_LEP452/file/async-create-delete/10/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_LEP452/file/async-create-delete/10/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-create-delete/10/.dirs/runtime 1069s ok 37 /file/async-create-delete/10 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_LEP452/file/async-create-delete/25/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_LEP452/file/async-create-delete/25/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-create-delete/25/.dirs/runtime 1069s ok 38 /file/async-create-delete/25 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/async-create-delete/4096/.dirs/runtime 1069s ok 39 /file/async-create-delete/4096 1069s # End of async-create-delete tests 1069s # Start of replace-symlink tests 1069s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/home 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/cache 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/system-config2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/config 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/system-data2 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/data 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/state 1069s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/replace-symlink/using-etag/.dirs/runtime 1069s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1069s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1069s # Using temporary directory /tmp/test_file_LEP452/g_file_replace_symlink_using_etag_6KLC62 1070s ok 40 /file/replace-symlink/using-etag 1070s # slow test /file/replace-symlink/using-etag executed in 2.00 secs 1070s # End of replace-symlink tests 1070s # Start of replace tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/replace/write-only/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/replace/write-only/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/replace/write-only/.dirs/system-config1:/tmp/test_file_LEP452/file/replace/write-only/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/replace/write-only/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/replace/write-only/.dirs/system-data1:/tmp/test_file_LEP452/file/replace/write-only/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/replace/write-only/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/replace/write-only/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/replace/write-only/.dirs/runtime 1070s # /file/replace/write-only summary: Test various situations for g_file_replace() 1070s # Current umask: 2 1070s # Test 0, using temporary directory /tmp/test_file_LEP452/g_file_replace_09HC62 1070s # Test 1, using temporary directory /tmp/test_file_LEP452/g_file_replace_DIIC62 1070s # Test 2, using temporary directory /tmp/test_file_LEP452/g_file_replace_YEU752 1070s # Test 3, using temporary directory /tmp/test_file_LEP452/g_file_replace_VOS752 1070s # Test 4, using temporary directory /tmp/test_file_LEP452/g_file_replace_VGS752 1070s # Test 5, using temporary directory /tmp/test_file_LEP452/g_file_replace_6MS752 1070s # Test 6, using temporary directory /tmp/test_file_LEP452/g_file_replace_XTQ752 1070s # Test 7, using temporary directory /tmp/test_file_LEP452/g_file_replace_MB3752 1070s # Test 8, using temporary directory /tmp/test_file_LEP452/g_file_replace_DO2752 1070s # Test 9, using temporary directory /tmp/test_file_LEP452/g_file_replace_HW2752 1070s # Test 10, using temporary directory /tmp/test_file_LEP452/g_file_replace_1O1752 1070s # Test 11, using temporary directory /tmp/test_file_LEP452/g_file_replace_JVZ752 1070s # Test 12, using temporary directory /tmp/test_file_LEP452/g_file_replace_U1Z752 1070s # Test 13, using temporary directory /tmp/test_file_LEP452/g_file_replace_WHZ752 1070s # Test 14, using temporary directory /tmp/test_file_LEP452/g_file_replace_5TX752 1070s # Test 15, using temporary directory /tmp/test_file_LEP452/g_file_replace_KZH752 1070s # Test 16, using temporary directory /tmp/test_file_LEP452/g_file_replace_A2F752 1070s # Test 17, using temporary directory /tmp/test_file_LEP452/g_file_replace_DQE752 1070s # Test 18, using temporary directory /tmp/test_file_LEP452/g_file_replace_LPP752 1070s # Test 19, using temporary directory /tmp/test_file_LEP452/g_file_replace_07P752 1070s # Test 20, using temporary directory /tmp/test_file_LEP452/g_file_replace_N1O752 1070s # Test 21, using temporary directory /tmp/test_file_LEP452/g_file_replace_9AN752 1070s # Test 22, using temporary directory /tmp/test_file_LEP452/g_file_replace_XQK752 1070s # Test 23, using temporary directory /tmp/test_file_LEP452/g_file_replace_NSL752 1070s # Test 24, using temporary directory /tmp/test_file_LEP452/g_file_replace_DTK852 1070s # Test 25, using temporary directory /tmp/test_file_LEP452/g_file_replace_0CJ852 1070s # Test 26, using temporary directory /tmp/test_file_LEP452/g_file_replace_YJJ852 1070s # Test 27, using temporary directory /tmp/test_file_LEP452/g_file_replace_GJK852 1070s # Test 28, using temporary directory /tmp/test_file_LEP452/g_file_replace_TLI852 1070s # Test 29, using temporary directory /tmp/test_file_LEP452/g_file_replace_MSR852 1070s # Test 30, using temporary directory /tmp/test_file_LEP452/g_file_replace_L5Q852 1070s # Test 31, using temporary directory /tmp/test_file_LEP452/g_file_replace_GER852 1070s # Test 32, using temporary directory /tmp/test_file_LEP452/g_file_replace_WYN852 1070s # Test 33, using temporary directory /tmp/test_file_LEP452/g_file_replace_WJM852 1070s # Test 34, using temporary directory /tmp/test_file_LEP452/g_file_replace_GQM852 1070s # Test 35, using temporary directory /tmp/test_file_LEP452/g_file_replace_JON852 1070s # Test 36, using temporary directory /tmp/test_file_LEP452/g_file_replace_967752 1070s # Test 37, using temporary directory /tmp/test_file_LEP452/g_file_replace_YM6752 1070s # Test 38, using temporary directory /tmp/test_file_LEP452/g_file_replace_ZA5752 1070s # Test 39, using temporary directory /tmp/test_file_LEP452/g_file_replace_1J3752 1070s # Test 40, using temporary directory /tmp/test_file_LEP452/g_file_replace_LF4752 1070s # Test 41, using temporary directory /tmp/test_file_LEP452/g_file_replace_MDF852 1070s # Test 42, using temporary directory /tmp/test_file_LEP452/g_file_replace_O4D852 1070s # Test 43, using temporary directory /tmp/test_file_LEP452/g_file_replace_8JB852 1070s # Test 44, using temporary directory /tmp/test_file_LEP452/g_file_replace_LS9752 1070s # Test 45, using temporary directory /tmp/test_file_LEP452/g_file_replace_J19752 1070s # Test 46, using temporary directory /tmp/test_file_LEP452/g_file_replace_Q79852 1070s # Test 47, using temporary directory /tmp/test_file_LEP452/g_file_replace_JDA952 1070s # Test 48, using temporary directory /tmp/test_file_LEP452/g_file_replace_7V8852 1070s # We do not have CAP_DAC_OVERRIDE or equivalent 1070s ok 41 /file/replace/write-only 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/replace/read-write/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/replace/read-write/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/replace/read-write/.dirs/system-config1:/tmp/test_file_LEP452/file/replace/read-write/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/replace/read-write/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/replace/read-write/.dirs/system-data1:/tmp/test_file_LEP452/file/replace/read-write/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/replace/read-write/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/replace/read-write/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/replace/read-write/.dirs/runtime 1070s # /file/replace/read-write summary: Test various situations for g_file_replace() 1070s # Current umask: 2 1070s # Test 0, using temporary directory /tmp/test_file_LEP452/g_file_replace_0Y9852 1070s # Test 1, using temporary directory /tmp/test_file_LEP452/g_file_replace_HB9852 1070s # Test 2, using temporary directory /tmp/test_file_LEP452/g_file_replace_JT7852 1070s # Test 3, using temporary directory /tmp/test_file_LEP452/g_file_replace_RG6852 1070s # Test 4, using temporary directory /tmp/test_file_LEP452/g_file_replace_AXG952 1070s # Test 5, using temporary directory /tmp/test_file_LEP452/g_file_replace_42G952 1070s # Test 6, using temporary directory /tmp/test_file_LEP452/g_file_replace_ZKF952 1070s # Test 7, using temporary directory /tmp/test_file_LEP452/g_file_replace_PWD952 1070s # Test 8, using temporary directory /tmp/test_file_LEP452/g_file_replace_JND952 1070s # Test 9, using temporary directory /tmp/test_file_LEP452/g_file_replace_FHD952 1070s # Test 10, using temporary directory /tmp/test_file_LEP452/g_file_replace_8YB952 1070s # Test 11, using temporary directory /tmp/test_file_LEP452/g_file_replace_T0Y852 1070s # Test 12, using temporary directory /tmp/test_file_LEP452/g_file_replace_5FY852 1070s # Test 13, using temporary directory /tmp/test_file_LEP452/g_file_replace_BNY852 1070s # Test 14, using temporary directory /tmp/test_file_LEP452/g_file_replace_YRW852 1070s # Test 15, using temporary directory /tmp/test_file_LEP452/g_file_replace_CCV852 1070s # Test 16, using temporary directory /tmp/test_file_LEP452/g_file_replace_8ST852 1070s # Test 17, using temporary directory /tmp/test_file_LEP452/g_file_replace_8P4852 1070s # Test 18, using temporary directory /tmp/test_file_LEP452/g_file_replace_B72852 1070s # Test 19, using temporary directory /tmp/test_file_LEP452/g_file_replace_DZ0852 1070s # Test 20, using temporary directory /tmp/test_file_LEP452/g_file_replace_MIZ852 1070s # Test 21, using temporary directory /tmp/test_file_LEP452/g_file_replace_AYZ852 1070s # Test 22, using temporary directory /tmp/test_file_LEP452/g_file_replace_JO0952 1070s # Test 23, using temporary directory /tmp/test_file_LEP452/g_file_replace_BW0952 1070s # Test 24, using temporary directory /tmp/test_file_LEP452/g_file_replace_F4X952 1070s # Test 25, using temporary directory /tmp/test_file_LEP452/g_file_replace_GMW952 1070s # Test 26, using temporary directory /tmp/test_file_LEP452/g_file_replace_QKX952 1070s # Test 27, using temporary directory /tmp/test_file_LEP452/g_file_replace_GSX952 1070s # Test 28, using temporary directory /tmp/test_file_LEP452/g_file_replace_O2V952 1070s # Test 29, using temporary directory /tmp/test_file_LEP452/g_file_replace_MY6952 1070s # Test 30, using temporary directory /tmp/test_file_LEP452/g_file_replace_NP6952 1070s # Test 31, using temporary directory /tmp/test_file_LEP452/g_file_replace_IY6952 1070s # Test 32, using temporary directory /tmp/test_file_LEP452/g_file_replace_VO5952 1070s # Test 33, using temporary directory /tmp/test_file_LEP452/g_file_replace_7Y2952 1070s # Test 34, using temporary directory /tmp/test_file_LEP452/g_file_replace_ZY3952 1070s # Test 35, using temporary directory /tmp/test_file_LEP452/g_file_replace_M53952 1070s # Test 36, using temporary directory /tmp/test_file_LEP452/g_file_replace_VF1952 1070s # Test 37, using temporary directory /tmp/test_file_LEP452/g_file_replace_WIN952 1070s # Test 38, using temporary directory /tmp/test_file_LEP452/g_file_replace_CWN952 1070s # Test 39, using temporary directory /tmp/test_file_LEP452/g_file_replace_K9J952 1070s # Test 40, using temporary directory /tmp/test_file_LEP452/g_file_replace_CKI952 1070s # Test 41, using temporary directory /tmp/test_file_LEP452/g_file_replace_87I952 1070s # Test 42, using temporary directory /tmp/test_file_LEP452/g_file_replace_U1T952 1070s # Test 43, using temporary directory /tmp/test_file_LEP452/g_file_replace_LHS952 1070s # Test 44, using temporary directory /tmp/test_file_LEP452/g_file_replace_T3Q952 1070s # Test 45, using temporary directory /tmp/test_file_LEP452/g_file_replace_JZO952 1070s # Test 46, using temporary directory /tmp/test_file_LEP452/g_file_replace_THP952 1070s # Test 47, using temporary directory /tmp/test_file_LEP452/g_file_replace_6GUT52 1070s # Test 48, using temporary directory /tmp/test_file_LEP452/g_file_replace_01UT52 1070s # We do not have CAP_DAC_OVERRIDE or equivalent 1070s ok 42 /file/replace/read-write 1070s # End of replace tests 1070s # Start of copy tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/copy/progress/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/copy/progress/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/copy/progress/.dirs/system-config1:/tmp/test_file_LEP452/file/copy/progress/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/copy/progress/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/copy/progress/.dirs/system-data1:/tmp/test_file_LEP452/file/copy/progress/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/copy/progress/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/copy/progress/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/copy/progress/.dirs/runtime 1070s ok 43 /file/copy/progress 1070s # End of copy tests 1070s # Start of writev tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/no-bytes-written/.dirs/runtime 1070s ok 44 /file/writev/no-bytes-written 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/no-vectors/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/no-vectors/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/no-vectors/.dirs/runtime 1070s ok 45 /file/writev/no-vectors 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/empty-vectors/.dirs/runtime 1070s ok 46 /file/writev/empty-vectors 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/too-big-vectors/.dirs/runtime 1070s ok 47 /file/writev/too-big-vectors 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/async/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/async/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/async/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/async/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/async/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/async/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/async/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/async/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/async/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/async/.dirs/runtime 1070s ok 48 /file/writev/async 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/async_all/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/async_all/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/async_all/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/async_all/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/async_all/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/async_all/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/async_all/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/async_all/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/async_all/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/async_all/.dirs/runtime 1070s ok 49 /file/writev/async_all 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/async_all-empty-vectors/.dirs/runtime 1070s ok 50 /file/writev/async_all-empty-vectors 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/async_all-no-vectors/.dirs/runtime 1070s ok 51 /file/writev/async_all-no-vectors 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/async_all-to-big-vectors/.dirs/runtime 1070s ok 52 /file/writev/async_all-to-big-vectors 1070s ok - glib/file.test 1070s # Running test: glib/module-test-library.test 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/writev/async_all-cancellation/.dirs/runtime 1070s ok 53 /file/writev/async_all-cancellation 1070s # End of writev tests 1070s # Start of from-uri tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/from-uri/ignores-query-string/.dirs/runtime 1070s ok 54 /file/from-uri/ignores-query-string 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_LEP452/file/from-uri/ignores-fragment/.dirs/runtime 1070s ok 55 /file/from-uri/ignores-fragment 1070s # End of from-uri tests 1070s # End of file tests 1070s TAP version 14 1070s # random seed: R02S189ccd57bad6ee3e5de42fb8b089616b 1070s 1..3 1070s # Start of module tests 1070s ok 1 /module/basics 1070s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1070s ok 2 /module/invalid-libtool-archive 1070s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1070s ok - glib/module-test-library.test 1070s ok 3 /module/local-binding 1070s # End of module tests 1070s # Running test: glib/node.test 1070s ok - glib/node.test 1070s TAP version 14 1070s # random seed: R02S0af67c7965365247b64e139e9b14a25e 1070s 1..6 1070s # Start of node tests 1070s ok 1 /node/allocation 1070s ok 2 /node/construction 1070s ok 3 /node/traversal 1070s ok 4 /node/misc 1070s ok 5 /node/unlink 1070s ok 6 /node/copy 1070s # End of node tests 1070s # Running test: glib/keyfile.test 1070s TAP version 14 1070s # random seed: R02S74b4a0651a5004aeb3b005c3b3e88da3 1070s 1..36 1070s # Start of keyfile tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/line-ends/.dirs/runtime 1070s ok 1 /keyfile/line-ends 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/whitespace/.dirs/runtime 1070s ok 2 /keyfile/whitespace 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/comments/.dirs/runtime 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/104 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3047 1070s ok 3 /keyfile/comments 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/listing/.dirs/runtime 1070s ok - glib/keyfile.test 1070s # Running test: glib/bookmarkfile.test 1070s ok - glib/bookmarkfile.test 1070s # Running test: glib/shell.test 1070s ok 4 /keyfile/listing 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/string/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/string/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/string/.dirs/runtime 1070s ok 5 /keyfile/string 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/boolean/.dirs/runtime 1070s ok 6 /keyfile/boolean 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/number/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/number/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/number/.dirs/runtime 1070s ok 7 /keyfile/number 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/locale-string/.dirs/runtime 1070s ok 8 /keyfile/locale-string 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/lists/.dirs/runtime 1070s ok 9 /keyfile/lists 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/lists-set-get/.dirs/runtime 1070s ok 10 /keyfile/lists-set-get 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/group-remove/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165887 1070s ok 11 /keyfile/group-remove 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/key-remove/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=165980 1070s ok 12 /keyfile/key-remove 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/groups/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=316309 1070s ok 13 /keyfile/groups 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/duplicate-keys/.dirs/runtime 1070s ok 14 /keyfile/duplicate-keys 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=157877 1070s ok 15 /keyfile/duplicate-groups 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/duplicate-groups2/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=385910 1070s ok 16 /keyfile/duplicate-groups2 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/group-names/.dirs/runtime 1070s ok 17 /keyfile/group-names 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/key-names/.dirs/runtime 1070s ok 18 /keyfile/key-names 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/reload/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=420686 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2927 1070s ok 19 /keyfile/reload 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/int64/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=614864 1070s ok 20 /keyfile/int64 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/load/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/load/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/load/.dirs/runtime 1070s ok 21 /keyfile/load 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/save/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/save/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/save/.dirs/runtime 1070s ok 22 /keyfile/save 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/load-fail/.dirs/runtime 1070s ok 23 /keyfile/load-fail 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/non-utf8/.dirs/runtime 1070s ok 24 /keyfile/non-utf8 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/page-boundary/.dirs/runtime 1070s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640695 1070s ok 25 /keyfile/page-boundary 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/ref/.dirs/runtime 1070s ok 26 /keyfile/ref 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/replace-value/.dirs/runtime 1070s ok 27 /keyfile/replace-value 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/list-separator/.dirs/runtime 1070s ok 28 /keyfile/list-separator 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/empty-string/.dirs/runtime 1070s ok 29 /keyfile/empty-string 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/limbo/.dirs/runtime 1070s ok 30 /keyfile/limbo 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/utf8/.dirs/runtime 1070s # Testing invalid encoding ?non-UTF-8? 1070s # Testing invalid encoding ?UTF? 1070s # Testing invalid encoding ?UTF-9? 1070s ok 31 /keyfile/utf8 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/data 1070s ok - glib/shell.test 1070s # Running test: glib/threadtests.test 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/roundtrip/.dirs/runtime 1070s ok 32 /keyfile/roundtrip 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/bytes/.dirs/runtime 1070s ok 33 /keyfile/bytes 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/get-locale/.dirs/runtime 1070s ok 34 /keyfile/get-locale 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/free-when-not-last-ref/.dirs/runtime 1070s ok 35 /keyfile/free-when-not-last-ref 1070s # Start of locale-string tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/system-config1:/tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/system-data1:/tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_keyfile_8KCT52/keyfile/locale-string/multiple-loads/.dirs/runtime 1070s # /keyfile/locale-string/multiple-loads summary: Check that loading with translations multiple times works 1070s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2361 1070s ok 36 /keyfile/locale-string/multiple-loads 1070s # End of locale-string tests 1070s # End of keyfile tests 1070s TAP version 14 1070s # random seed: R02S266d2d9b5d496ce432c25f647ac643b1 1070s 1..96 1070s # Start of bookmarks tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/load-from-data-dirs/.dirs/runtime 1070s ok 1 /bookmarks/load-from-data-dirs 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/to-file/.dirs/runtime 1070s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_OHHU52/bookmarkfile-test-AYIU52.xbel 1070s # Roundtrip from a valid bookmark file 1070s ok 2 /bookmarks/to-file 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/move-item/.dirs/runtime 1070s ok 3 /bookmarks/move-item 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/corner-cases/.dirs/runtime 1070s ok 4 /bookmarks/corner-cases 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/misc/.dirs/runtime 1070s ok 5 /bookmarks/misc 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/deprecated/.dirs/runtime 1070s ok 6 /bookmarks/deprecated 1070s # Start of parse tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-01.xbel/.dirs/runtime 1070s ok 7 /bookmarks/parse/fail-01.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-02.xbel/.dirs/runtime 1070s ok 8 /bookmarks/parse/fail-02.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-03.xbel/.dirs/runtime 1070s ok 9 /bookmarks/parse/fail-03.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-04.xbel/.dirs/runtime 1070s ok 10 /bookmarks/parse/fail-04.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-05.xbel/.dirs/runtime 1070s ok 11 /bookmarks/parse/fail-05.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-06.xbel/.dirs/runtime 1070s ok 12 /bookmarks/parse/fail-06.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-07.xbel/.dirs/runtime 1070s ok 13 /bookmarks/parse/fail-07.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-08.xbel/.dirs/runtime 1070s ok 14 /bookmarks/parse/fail-08.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-09.xbel/.dirs/runtime 1070s ok 15 /bookmarks/parse/fail-09.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-10.xbel/.dirs/runtime 1070s ok 16 /bookmarks/parse/fail-10.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-11.xbel/.dirs/runtime 1070s ok 17 /bookmarks/parse/fail-11.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-12.xbel/.dirs/runtime 1070s ok 18 /bookmarks/parse/fail-12.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-13.xbel/.dirs/runtime 1070s ok 19 /bookmarks/parse/fail-13.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-14.xbel/.dirs/runtime 1070s ok 20 /bookmarks/parse/fail-14.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-15.xbel/.dirs/runtime 1070s ok 21 /bookmarks/parse/fail-15.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-16.xbel/.dirs/runtime 1070s ok 22 /bookmarks/parse/fail-16.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-17.xbel/.dirs/runtime 1070s ok 23 /bookmarks/parse/fail-17.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-18.xbel/.dirs/runtime 1070s ok 24 /bookmarks/parse/fail-18.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-19.xbel/.dirs/runtime 1070s ok 25 /bookmarks/parse/fail-19.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-20.xbel/.dirs/runtime 1070s ok 26 /bookmarks/parse/fail-20.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-21.xbel/.dirs/runtime 1070s ok 27 /bookmarks/parse/fail-21.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-22.xbel/.dirs/runtime 1070s ok 28 /bookmarks/parse/fail-22.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-23.xbel/.dirs/runtime 1070s ok 29 /bookmarks/parse/fail-23.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-24.xbel/.dirs/runtime 1070s ok 30 /bookmarks/parse/fail-24.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-25.xbel/.dirs/runtime 1070s ok 31 /bookmarks/parse/fail-25.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-26.xbel/.dirs/runtime 1070s ok 32 /bookmarks/parse/fail-26.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-27.xbel/.dirs/runtime 1070s ok 33 /bookmarks/parse/fail-27.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-28.xbel/.dirs/runtime 1070s ok 34 /bookmarks/parse/fail-28.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-29.xbel/.dirs/runtime 1070s ok 35 /bookmarks/parse/fail-29.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-30.xbel/.dirs/runtime 1070s ok 36 /bookmarks/parse/fail-30.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-31.xbel/.dirs/runtime 1070s ok 37 /bookmarks/parse/fail-31.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-32.xbel/.dirs/runtime 1070s ok 38 /bookmarks/parse/fail-32.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-33.xbel/.dirs/runtime 1070s ok 39 /bookmarks/parse/fail-33.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-34.xbel/.dirs/runtime 1070s ok 40 /bookmarks/parse/fail-34.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-35.xbel/.dirs/runtime 1070s ok 41 /bookmarks/parse/fail-35.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-36.xbel/.dirs/runtime 1070s ok 42 /bookmarks/parse/fail-36.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-37.xbel/.dirs/runtime 1070s ok 43 /bookmarks/parse/fail-37.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-38.xbel/.dirs/runtime 1070s ok 44 /bookmarks/parse/fail-38.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-39.xbel/.dirs/runtime 1070s ok 45 /bookmarks/parse/fail-39.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-40.xbel/.dirs/runtime 1070s ok 46 /bookmarks/parse/fail-40.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-41.xbel/.dirs/runtime 1070s ok 47 /bookmarks/parse/fail-41.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/fail-42.xbel/.dirs/runtime 1070s ok 48 /bookmarks/parse/fail-42.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-01.xbel/.dirs/runtime 1070s ok 49 /bookmarks/parse/valid-01.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-02.xbel/.dirs/runtime 1070s ok 50 /bookmarks/parse/valid-02.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/parse/valid-03.xbel/.dirs/runtime 1070s ok 51 /bookmarks/parse/valid-03.xbel 1070s # End of parse tests 1070s # Start of copy tests 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-01.xbel/.dirs/runtime 1070s ok 52 /bookmarks/copy/fail-01.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-02.xbel/.dirs/runtime 1070s ok 53 /bookmarks/copy/fail-02.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-03.xbel/.dirs/runtime 1070s ok 54 /bookmarks/copy/fail-03.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-04.xbel/.dirs/runtime 1070s ok 55 /bookmarks/copy/fail-04.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-05.xbel/.dirs/runtime 1070s ok 56 /bookmarks/copy/fail-05.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-06.xbel/.dirs/runtime 1070s ok 57 /bookmarks/copy/fail-06.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-07.xbel/.dirs/runtime 1070s ok 58 /bookmarks/copy/fail-07.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-08.xbel/.dirs/runtime 1070s ok 59 /bookmarks/copy/fail-08.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-09.xbel/.dirs/runtime 1070s ok 60 /bookmarks/copy/fail-09.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-10.xbel/.dirs/runtime 1070s ok 61 /bookmarks/copy/fail-10.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-11.xbel/.dirs/runtime 1070s ok 62 /bookmarks/copy/fail-11.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-12.xbel/.dirs/runtime 1070s ok 63 /bookmarks/copy/fail-12.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-13.xbel/.dirs/runtime 1070s ok 64 /bookmarks/copy/fail-13.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-14.xbel/.dirs/runtime 1070s ok 65 /bookmarks/copy/fail-14.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-15.xbel/.dirs/runtime 1070s ok 66 /bookmarks/copy/fail-15.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-16.xbel/.dirs/runtime 1070s ok 67 /bookmarks/copy/fail-16.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-17.xbel/.dirs/runtime 1070s ok 68 /bookmarks/copy/fail-17.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-18.xbel/.dirs/runtime 1070s ok 69 /bookmarks/copy/fail-18.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-19.xbel/.dirs/runtime 1070s ok 70 /bookmarks/copy/fail-19.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-20.xbel/.dirs/runtime 1070s ok 71 /bookmarks/copy/fail-20.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-21.xbel/.dirs/runtime 1070s ok 72 /bookmarks/copy/fail-21.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-22.xbel/.dirs/runtime 1070s ok 73 /bookmarks/copy/fail-22.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-23.xbel/.dirs/runtime 1070s ok 74 /bookmarks/copy/fail-23.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-24.xbel/.dirs/runtime 1070s ok 75 /bookmarks/copy/fail-24.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-25.xbel/.dirs/runtime 1070s ok 76 /bookmarks/copy/fail-25.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-26.xbel/.dirs/runtime 1070s ok 77 /bookmarks/copy/fail-26.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-27.xbel/.dirs/runtime 1070s ok 78 /bookmarks/copy/fail-27.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-28.xbel/.dirs/runtime 1070s ok 79 /bookmarks/copy/fail-28.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-29.xbel/.dirs/runtime 1070s ok 80 /bookmarks/copy/fail-29.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-30.xbel/.dirs/runtime 1070s ok 81 /bookmarks/copy/fail-30.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-31.xbel/.dirs/runtime 1070s ok 82 /bookmarks/copy/fail-31.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-32.xbel/.dirs/runtime 1070s ok 83 /bookmarks/copy/fail-32.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-33.xbel/.dirs/runtime 1070s ok 84 /bookmarks/copy/fail-33.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-34.xbel/.dirs/runtime 1070s ok 85 /bookmarks/copy/fail-34.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-35.xbel/.dirs/runtime 1070s ok 86 /bookmarks/copy/fail-35.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-36.xbel/.dirs/runtime 1070s ok 87 /bookmarks/copy/fail-36.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-37.xbel/.dirs/runtime 1070s ok 88 /bookmarks/copy/fail-37.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-38.xbel/.dirs/runtime 1070s ok 89 /bookmarks/copy/fail-38.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-39.xbel/.dirs/runtime 1070s ok 90 /bookmarks/copy/fail-39.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-40.xbel/.dirs/runtime 1070s ok 91 /bookmarks/copy/fail-40.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-41.xbel/.dirs/runtime 1070s ok 92 /bookmarks/copy/fail-41.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/fail-42.xbel/.dirs/runtime 1070s ok 93 /bookmarks/copy/fail-42.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-01.xbel/.dirs/runtime 1070s ok 94 /bookmarks/copy/valid-01.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-02.xbel/.dirs/runtime 1070s ok 95 /bookmarks/copy/valid-02.xbel 1070s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/home 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/cache 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/config 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/data 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/state 1070s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_OHHU52/bookmarks/copy/valid-03.xbel/.dirs/runtime 1070s ok 96 /bookmarks/copy/valid-03.xbel 1070s # End of copy tests 1070s # End of bookmarks tests 1070s TAP version 14 1070s # random seed: R02Se1ee0cf56dcd026b55212434e8d87cd8 1070s 1..51 1070s # Start of shell tests 1070s # Start of cmdline tests 1070s test cmdline: foo bar 1070s ok 1 /shell/cmdline/0 1070s test cmdline: foo 'bar' 1070s ok 2 /shell/cmdline/1 1070s test cmdline: foo "bar" 1070s ok 3 /shell/cmdline/2 1070s test cmdline: foo '' 'bar' 1070s ok 4 /shell/cmdline/3 1070s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1070s ok 5 /shell/cmdline/4 1070s test cmdline: foo blah foo bar baz 1070s ok 6 /shell/cmdline/5 1070s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1070s ok 7 /shell/cmdline/6 1070s test cmdline: foo \ 1070s bar 1070s ok 8 /shell/cmdline/7 1070s test cmdline: foo '' '' 1070s ok 9 /shell/cmdline/8 1070s test cmdline: foo \" la la la 1070s ok 10 /shell/cmdline/9 1070s test cmdline: foo \ foo woo woo\ 1070s ok 11 /shell/cmdline/10 1070s test cmdline: foo "yada yada \$\"" 1070s ok 12 /shell/cmdline/11 1070s test cmdline: foo "c:\\" 1070s ok 13 /shell/cmdline/12 1070s test cmdline: foo # bla bla bla 1070s bar 1070s ok 14 /shell/cmdline/13 1070s test cmdline: foo a#b 1070s ok 15 /shell/cmdline/14 1070s test cmdline: #foo 1070s ok 16 /shell/cmdline/15 1070s test cmdline: foo bar \ 1070s ok 17 /shell/cmdline/16 1070s test cmdline: foo 'bar baz 1070s ok 18 /shell/cmdline/17 1070s test cmdline: foo '"bar" baz 1070s ok 19 /shell/cmdline/18 1070s test cmdline: 1070s ok 20 /shell/cmdline/19 1070s test cmdline: 1070s ok 21 /shell/cmdline/20 1070s test cmdline: # foo bar 1070s ok 22 /shell/cmdline/21 1070s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1070s ok 23 /shell/cmdline/22 1070s # End of cmdline tests 1070s # Start of quote tests 1070s ok 24 /shell/quote/0 1070s ok 25 /shell/quote/1 1070s ok 26 /shell/quote/2 1070s ok 27 /shell/quote/3 1070s ok 28 /shell/quote/4 1070s ok 29 /shell/quote/5 1070s ok 30 /shell/quote/6 1070s # End of quote tests 1070s # Start of unquote tests 1070s ok 31 /shell/unquote/0 1070s ok 32 /shell/unquote/1 1070s ok 33 /shell/unquote/2 1070s ok 34 /shell/unquote/3 1070s ok 35 /shell/unquote/4 1070s ok 36 /shell/unquote/5 1070s ok 37 /shell/unquote/6 1070s ok 38 /shell/unquote/7 1070s ok 39 /shell/unquote/8 1070s ok 40 /shell/unquote/9 1070s ok 41 /shell/unquote/10 1070s ok 42 /shell/unquote/11 1070s ok 43 /shell/unquote/12 1070s ok 44 /shell/unquote/13 1070s ok 45 /shell/unquote/14 1070s ok 46 /shell/unquote/15 1070s ok 47 /shell/unquote/16 1070s ok 48 /shell/unquote/17 1070s ok 49 /shell/unquote/18 1070s ok 50 /shell/unquote/19 1070s ok 51 /shell/unquote/20 1070s # End of unquote tests 1070s # End of shell tests 1070s TAP version 14 1070s # random seed: R02S1eeaca687830c6865eb5c951c99dedee 1070s 1..5 1070s # Start of GObject tests 1070s ok 1 /GObject/threaded-object-init 1071s ok 2 /GObject/threaded-weak-ref 1071s # slow test /GObject/threaded-weak-ref executed in 0.73 secs 1071s ok 3 /GObject/threaded-toggle-notify # SKIP Not reliable on 32-bit ARM 1071s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1071s # Start of threaded-weak-ref tests 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1071s # /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. 1071s ok 5 /GObject/threaded-weak-ref/on-finalization 1071s # End of threaded-weak-ref tests 1071s # End of GObject tests 1071s ok - glib/threadtests.test 1071s # Running test: glib/date.test 1071s TAP version 14 1071s # random seed: R02Sa74c9088a61d87ad014ab63028579542 1071s 1..121 1071s # Start of date tests 1071s ok 1 /date/basic 1071s ok 2 /date/empty 1071s ok 3 /date/dmy 1071s ok 4 /date/julian 1071s ok 5 /date/compare 1071s ok 6 /date/dates 1071s ok 7 /date/strftime 1071s ok 8 /date/two-digit-years 1071s ok 9 /date/parse 1071s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1071s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1071s ok 11 /date/month_substring 1071s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1071s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1071s ok 13 /date/clamp 1071s ok 14 /date/order 1071s ok 15 /date/copy 1071s # Vector 0: 0000-00-00, invalid 1071s # Vector 1: 0001-01-01, valid 1071s # Vector 2: 0000-01-01, invalid 1071s # Vector 3: 2000-02-30, invalid 1071s # Vector 4: 2000-02-29, valid 1071s # Vector 5: 2001-02-29, invalid 1071s # Vector 6: 65535-01-01, valid 1071s ok 16 /date/valid-dmy 1071s # Start of parse tests 1071s # Test 0 1071s # Test 1 1071s ok 17 /date/parse/invalid 1071s # End of parse tests 1071s # Start of year tests 1071s ok 18 /date/year/1 1071s ok 19 /date/year/2 1071s ok 20 /date/year/3 1071s ok 21 /date/year/4 1071s ok 22 /date/year/5 1071s ok 23 /date/year/6 1071s ok 24 /date/year/7 1071s ok 25 /date/year/8 1071s ok 26 /date/year/9 1071s ok 27 /date/year/10 1071s ok 28 /date/year/11 1071s ok 29 /date/year/12 1071s ok 30 /date/year/13 1071s ok 31 /date/year/14 1071s ok 32 /date/year/98 1071s ok 33 /date/year/99 1071s ok 34 /date/year/100 1071s ok 35 /date/year/101 1071s ok 36 /date/year/102 1071s ok 37 /date/year/103 1071s ok 38 /date/year/397 1071s ok 39 /date/year/398 1071s ok 40 /date/year/399 1071s ok 41 /date/year/400 1071s ok 42 /date/year/401 1071s ok 43 /date/year/402 1071s ok 44 /date/year/403 1071s ok 45 /date/year/404 1071s ok 46 /date/year/405 1071s ok 47 /date/year/406 1071s ok 48 /date/year/1598 1071s ok 49 /date/year/1599 1071s ok 50 /date/year/1600 1071s ok 51 /date/year/1601 1071s ok 52 /date/year/1602 1071s ok 53 /date/year/1650 1071s ok 54 /date/year/1651 1071s ok 55 /date/year/1897 1071s ok 56 /date/year/1898 1071s ok 57 /date/year/1899 1071s ok 58 /date/year/1900 1071s ok 59 /date/year/1901 1071s ok 60 /date/year/1902 1071s ok 61 /date/year/1903 1071s ok 62 /date/year/1961 1071s ok 63 /date/year/1962 1071s ok 64 /date/year/1963 1071s ok 65 /date/year/1964 1071s ok 66 /date/year/1965 1071s ok 67 /date/year/1967 1071s ok 68 /date/year/1968 1071s ok 69 /date/year/1969 1071s ok 70 /date/year/1970 1071s ok 71 /date/year/1971 1071s ok 72 /date/year/1972 1071s ok 73 /date/year/1973 1071s ok 74 /date/year/1974 1071s ok 75 /date/year/1975 1071s ok 76 /date/year/1976 1071s ok 77 /date/year/1977 1071s ok 78 /date/year/1978 1071s ok 79 /date/year/1979 1071s ok 80 /date/year/1980 1071s ok 81 /date/year/1981 1071s ok 82 /date/year/1982 1071s ok 83 /date/year/1983 1071s ok 84 /date/year/1984 1071s ok 85 /date/year/1985 1071s ok 86 /date/year/1986 1071s ok 87 /date/year/1987 1071s ok 88 /date/year/1988 1071s ok 89 /date/year/1989 1071s ok 90 /date/year/1990 1071s ok 91 /date/year/1991 1071s ok 92 /date/year/1992 1071s ok 93 /date/year/1993 1071s ok 94 /date/year/1994 1071s ok 95 /date/year/1995 1071s ok 96 /date/year/1996 1071s ok 97 /date/year/1997 1071s ok 98 /date/year/1998 1071s ok 99 /date/year/1999 1071s ok 100 /date/year/2000 1071s ok 101 /date/year/2001 1071s ok 102 /date/year/2002 1071s ok 103 /date/year/2003 1071s ok 104 /date/year/2004 1071s ok 105 /date/year/2005 1071s ok 106 /date/year/2006 1071s ok 107 /date/year/2007 1071s ok 108 /date/year/2008 1071s ok 109 /date/year/2009 1071s ok 110 /date/year/2010 1071s ok 111 /date/year/2011 1071s ok 112 /date/year/2012 1071s ok 113 /date/year/3000 1071s ok 114 /date/year/3001 1071s ok 115 /date/year/3002 1071s ok 116 /date/year/3998 1071s ok 117 /date/year/3999 1071s ok 118 /date/year/4000 1071s ok 119 /date/year/4001 1071s ok 120 /date/year/4002 1071s ok 121 /date/year/4003 1071s # End of year tests 1071s # End of date tests 1071s ok - glib/date.test 1071s # Running test: glib/gdbus-export.test 1071s TAP version 14 1071s # random seed: R02S1c71452384fcb8a3a8bb7f8b81894ece 1071s 1..7 1071s # Start of gdbus tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration/.dirs/runtime 1071s ok 1 /gdbus/object-registration 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures/.dirs/runtime 1071s ok 2 /gdbus/object-registration-with-closures 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/object-registration-with-closures2/.dirs/runtime 1071s ok 3 /gdbus/object-registration-with-closures2 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/registered-interfaces/.dirs/runtime 1071s ok 4 /gdbus/registered-interfaces 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/async-properties/.dirs/runtime 1071s ok 5 /gdbus/async-properties 1071s # Start of threaded-unregistration tests 1071s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/home 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/cache 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/system-config2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/config 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/system-data2 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/data 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/state 1071s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/object/.dirs/runtime 1071s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1071s # /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 1073s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (3 iterations with unregistration first, 997 with call first); skipping test 1073s # slow test /gdbus/threaded-unregistration/object executed in 1.39 secs 1073s # Executing: glib/gdbus-export.test 1073s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/home 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/cache 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/config 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/data 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/state 1073s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_BFOQ52/gdbus/threaded-unregistration/subtree/.dirs/runtime 1073s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1073s # /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 1074s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (1 iterations with unregistration first, 999 with call first); skipping test 1074s # slow test /gdbus/threaded-unregistration/subtree executed in 1.36 secs 1074s # End of threaded-unregistration tests 1074s # End of gdbus tests 1074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1074s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1074s ok - glib/gdbus-export.test 1074s # Running test: glib/gnotification.test 1074s TAP version 14 1074s # random seed: R02S65c8a269a40ff11aede68abbd65e801c 1074s 1..2 1074s # Start of gnotification tests 1074s ok - glib/gnotification.test 1074s ok 1 /gnotification/basic 1074s ok 2 /gnotification/properties 1074s # End of gnotification tests 1074s # Running test: glib/resources.test 1074s TAP version 14 1074s # random seed: R02S852fcfcf1db055524cd04ec351448a02 1074s 1..19 1074s # Start of resource tests 1074s ok 1 /resource/file 1074s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1074s ok 2 /resource/file-path 1074s ok 3 /resource/data 1074s ok 4 /resource/data_unaligned 1074s ok 5 /resource/data-corrupt 1074s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1074s ok 6 /resource/data-corrupt-compression 1074s ok 7 /resource/data-empty 1074s ok - glib/resources.test 1074s # Running test: glib/union-info.test 1074s ok - glib/union-info.test 1074s # Running test: glib/properties-refcount3.test 1074s ok 8 /resource/registered 1074s ok 9 /resource/manual 1074s ok 10 /resource/manual2 1074s ok 11 /resource/automatic 1074s ok 12 /resource/module 1074s ok 13 /resource/binary-linked 1074s ok 14 /resource/64k 1074s GLib-GIO-Message: 18:54:41.496: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1074s GLib-GIO-Message: 18:54:41.496: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1074s GLib-GIO-Message: 18:54:41.496: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1074s ok 15 /resource/overlay 1074s ok 16 /resource/digits 1074s ok 17 /resource/has-children 1074s # Start of uri tests 1074s ok 18 /resource/uri/query-info 1074s ok 19 /resource/uri/file 1074s # End of uri tests 1074s # End of resource tests 1074s TAP version 14 1074s # random seed: R02S0412211364180d7c22d42fcbf57d796c 1074s 1..2 1074s # Start of union-info tests 1074s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_Y94952/union-info/basic/.dirs/home 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_Y94952/union-info/basic/.dirs/cache 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_Y94952/union-info/basic/.dirs/system-config1:/tmp/test_union-info_Y94952/union-info/basic/.dirs/system-config2 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_Y94952/union-info/basic/.dirs/config 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_Y94952/union-info/basic/.dirs/system-data1:/tmp/test_union-info_Y94952/union-info/basic/.dirs/system-data2 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_Y94952/union-info/basic/.dirs/data 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_Y94952/union-info/basic/.dirs/state 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_Y94952/union-info/basic/.dirs/runtime 1074s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1074s # /union-info/basic summary: Test basic properties of GIUnionInfo 1074s ok 1 /union-info/basic 1074s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_Y94952/union-info/methods/.dirs/home 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_Y94952/union-info/methods/.dirs/cache 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_Y94952/union-info/methods/.dirs/system-config1:/tmp/test_union-info_Y94952/union-info/methods/.dirs/system-config2 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_Y94952/union-info/methods/.dirs/config 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_Y94952/union-info/methods/.dirs/system-data1:/tmp/test_union-info_Y94952/union-info/methods/.dirs/system-data2 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_Y94952/union-info/methods/.dirs/data 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_Y94952/union-info/methods/.dirs/state 1074s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_Y94952/union-info/methods/.dirs/runtime 1074s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1074s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1074s ok 2 /union-info/methods 1074s # End of union-info tests 1074s TAP version 14 1074s # random seed: R02S7c338046988e8570a60918af32d9d47a 1074s 1..1 1074s # Start of gobject tests 1074s # Start of refcount tests 1079s # Executing: glib/properties-refcount3.test 1083s # Executing: glib/properties-refcount3.test 1088s # Executing: glib/properties-refcount3.test 1093s # Executing: glib/properties-refcount3.test 1098s # Executing: glib/properties-refcount3.test 1104s # Executing: glib/properties-refcount3.test 1104s # 1104s # stopping 1104s # 1104s # stopped 1104s # 1104s # 13794131 344566 1104s # 1104s ok 1 /gobject/refcount/properties-3 1104s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1104s # End of refcount tests 1104s # End of gobject tests 1104s ok - glib/properties-refcount3.test 1104s # Running test: glib/gdbus-threading.test 1104s ok - glib/gdbus-threading.test 1104s # Running test: glib/cxx-20.test 1104s TAP version 14 1104s # random seed: R02S1a62348be0bb0ade5827bc9939466a88 1104s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1104s TAP version 14 1104s # random seed: R02S05764a56a227668106accf8d5e91df4b 1104s 1..2 1104s # Start of gtask tests 1104s ok - glib/cxx-20.test 1104s # 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. 1104s ok 1 /gtask/name 1104s # Start of name tests 1104s # 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. 1104s ok 2 /gtask/name/macro-wrapper 1104s # End of name tests 1104s # End of gtask tests 1104s # Running test: glib/override.test 1104s ok - glib/override.test 1104s TAP version 14 1104s # random seed: R02S6e79aa27df7661d1293a376d68635ebc 1104s 1..1 1104s # Start of gobject tests 1104s # *** emitting foo on a TestA instance 1104s # Expecting: TestA::foo,TestI::foo 1104s # Got: TestA::foo,TestI::foo 1104s # *** emitting bar on a TestA instance 1104s # Expecting: TestA::bar 1104s # Got: TestA::bar 1104s # *** emitting baz on a TestA instance 1104s # Expecting: TestA::baz 1104s # Got: TestA::baz 1104s # *** emitting foo on a TestB instance 1104s # Expecting: TestB::foo,TestA::foo,TestI::foo 1104s # Got: TestB::foo,TestA::foo,TestI::foo 1104s # *** emitting bar on a TestB instance 1104s # Expecting: TestB::bar,TestA::bar 1104s # Got: TestB::bar,TestA::bar 1104s # *** emitting baz on a TestB instance 1104s # Expecting: TestB::baz,TestA::baz 1104s # Got: TestB::baz,TestA::baz 1104s # *** emitting foo on a TestC instance 1104s # Expecting: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1104s # Got: TestC::foo,TestB::foo,TestA::foo,TestI::foo 1104s # *** emitting bar on a TestC instance 1104s # Expecting: TestC::bar,TestB::bar,TestA::bar 1104s # Got: TestC::bar,TestB::bar,TestA::bar 1104s # *** emitting baz on a TestC instance 1104s # Expecting: TestC::baz,TestB::baz,TestA::baz 1104s # Got: TestC::baz,TestB::baz,TestA::baz 1104s ok 1 /gobject/override 1104s # End of gobject tests 1104s # Running test: glib/portal-support-env-var.test 1104s ok - glib/portal-support-env-var.test 1104s TAP version 14 1104s # random seed: R02S30cd3d0bb0bbbdd32a487233e00d23c4 1104s 1..1 1104s # Start of portal-support tests 1104s ok 1 /portal-support/env-var 1104s # End of portal-support tests 1104s # Running test: glib/mutex.test 1104s TAP version 14 1104s # random seed: R02Sd56b14419224cb4a0fb2e3c5a2e30483 1104s 1..17 1104s # Start of thread tests 1104s ok 1 /thread/mutex1 1104s ok 2 /thread/mutex2 1104s ok 3 /thread/mutex3 1104s ok 4 /thread/mutex4 1105s ok 5 /thread/mutex5 1105s # slow test /thread/mutex5 executed in 0.97 secs 1105s # Start of mutex tests 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s # /thread/mutex/errno summary: Validates that errno is not touched upon return 1105s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3034 1105s ok 6 /thread/mutex/errno 1105s # Start of perf tests 1105s # max perf: 1.000000 mips 1105s ok 7 /thread/mutex/perf/uncontended 1105s # Start of contended tests 1105s # max perf: inf mips 1105s ok 8 /thread/mutex/perf/contended/1 1105s # max perf: inf mips 1105s ok 9 /thread/mutex/perf/contended/2 1105s # max perf: 2.000000 mips 1105s ok 10 /thread/mutex/perf/contended/3 1105s # max perf: 1.250000 mips 1105s ok 11 /thread/mutex/perf/contended/4 1105s # max perf: 1.200000 mips 1105s ok 12 /thread/mutex/perf/contended/5 1105s # max perf: 0.538462 mips 1105s ok 13 /thread/mutex/perf/contended/6 1105s # max perf: 2.666667 mips 1105s ok 14 /thread/mutex/perf/contended/7 1105s # max perf: 1.800000 mips 1105s ok 15 /thread/mutex/perf/contended/8 1105s # max perf: 2.000000 mips 1105s ok 16 /thread/mutex/perf/contended/9 1105s # max perf: 0.152778 mips 1105s ok 17 /thread/mutex/perf/contended/10 1105s # End of contended tests 1105s # End of perf tests 1105s # End of mutex tests 1105s # End of thread tests 1105s ok - glib/mutex.test 1105s # Running test: glib/macros-c-17.test 1105s TAP version 14 1105s # random seed: R02S16d23fca7565e8046e01b94e4bf2e095 1105s 1..4 1105s # Start of C tests 1105s ok 1 /C/standard-17 1105s # End of C tests 1105s # Start of alignof tests 1105s ok 2 /alignof/fallback 1105s # End of alignof tests 1105s # Start of assert tests 1105s ok 3 /assert/static 1105s # End of assert tests 1105s # Start of struct tests 1105s ok 4 /struct/sizeof_member 1105s # End of struct tests 1105s ok - glib/macros-c-17.test 1105s # Running test: glib/cxx-2b.test 1105s TAP version 14 1105s # random seed: R02S52e8436c205d8bc15f44821c21a93cb6 1105s 1..2 1105s # Start of gtask tests 1105s # 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. 1105s ok 1 /gtask/name 1105s # Start of name tests 1105s # 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. 1105s ok 2 /gtask/name/macro-wrapper 1105s # End of name tests 1105s # End of gtask tests 1105s ok - glib/cxx-2b.test 1105s # Running test: glib/mapping.test 1105s TAP version 14 1105s # random seed: R02S6840c4213c8262aa2ba8600062e8c6fc 1105s 1..3 1105s # Start of mapping tests 1105s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/home 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/cache 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/system-config1:/tmp/test_mapping_CS7S52/mapping/flags/.dirs/system-config2 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/config 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/system-data1:/tmp/test_mapping_CS7S52/mapping/flags/.dirs/system-data2 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/data 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/state 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_CS7S52/mapping/flags/.dirs/runtime 1105s # test_mapping: ok 1105s ok 1 /mapping/flags 1105s ok - glib/mapping.test 1105s # Running test: glib/tree.test 1105s ok - glib/tree.test 1105s # Running test: glib/convert.test 1105s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_CS7S52/mapping/private/.dirs/home 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_CS7S52/mapping/private/.dirs/cache 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_CS7S52/mapping/private/.dirs/system-config1:/tmp/test_mapping_CS7S52/mapping/private/.dirs/system-config2 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_CS7S52/mapping/private/.dirs/config 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_CS7S52/mapping/private/.dirs/system-data1:/tmp/test_mapping_CS7S52/mapping/private/.dirs/system-data2 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_CS7S52/mapping/private/.dirs/data 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_CS7S52/mapping/private/.dirs/state 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_CS7S52/mapping/private/.dirs/runtime 1105s ok 2 /mapping/private 1105s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/home 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/cache 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_CS7S52/mapping/private-child/.dirs/system-config2 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/config 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_CS7S52/mapping/private-child/.dirs/system-data2 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/data 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/state 1105s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_CS7S52/mapping/private-child/.dirs/runtime 1105s # test_child_private: child spawned 1105s # Subtest: /usr/libexec/installed-tests/glib/mapping 1105s # random seed: R02S0648fbe65f1ad3eec29ae6eae490e7da 1105s # test_child_private: received first child signal 1105s # test_child_private: received parent signal 1105s # Child exited with status 0 1105s # test_child_private: received second child signal 1105s ok 3 /mapping/private-child 1105s # End of mapping tests 1105s TAP version 14 1105s # random seed: R02S8c2ffb5d8e0aa575d40d8443ef00221c 1105s 1..7 1105s # Start of tree tests 1105s ok 1 /tree/search 1105s ok 2 /tree/remove 1105s ok 3 /tree/destroy 1105s ok 4 /tree/traverse 1105s ok 5 /tree/insert 1105s ok 6 /tree/bounds 1105s ok 7 /tree/remove-all 1105s # End of tree tests 1105s TAP version 14 1105s # random seed: R02Se0c8716b37abc1315fafa85cd2b407f2 1105s 1..14 1105s # Start of conversion tests 1105s ok 1 /conversion/no-conv 1105s ok 2 /conversion/iconv-state 1105s ok 3 /conversion/illegal-sequence 1105s ok 4 /conversion/byte-order 1105s ok 5 /conversion/unicode 1105s ok 6 /conversion/filename-utf8 1105s ok 7 /conversion/filename-display 1105s ok 8 /conversion/convert-embedded-nul 1105s # Start of locale-to-utf8 tests 1105s ok 9 /conversion/locale-to-utf8/embedded-nul 1105s # Start of embedded-nul tests 1105s # Start of subprocess tests 1105s # End of subprocess tests 1105s # End of embedded-nul tests 1105s # End of locale-to-utf8 tests 1105s # Start of locale-from-utf8 tests 1105s ok 10 /conversion/locale-from-utf8/embedded-nul 1105s # Start of embedded-nul tests 1105s # Start of subprocess tests 1105s # End of subprocess tests 1105s # End of embedded-nul tests 1105s # End of locale-from-utf8 tests 1105s # Start of filename-to-utf8 tests 1105s ok 11 /conversion/filename-to-utf8/embedded-nul 1105s # Start of embedded-nul tests 1105s # Start of subprocess tests 1105s # End of subprocess tests 1105s # End of embedded-nul tests 1105s # End of filename-to-utf8 tests 1105s # Start of filename-from-utf8 tests 1105s ok 12 /conversion/filename-from-utf8/embedded-nul 1105s # Start of embedded-nul tests 1105s # Start of subprocess tests 1105s # End of subprocess tests 1105s # End of embedded-nul tests 1105s # End of filename-from-utf8 tests 1105s # Start of filename-from-uri tests 1105s ok 13 /conversion/filename-from-uri/query-is-ignored 1105s ok 14 /conversion/filename-from-uri/fragment-is-ignored 1105s # End of filename-from-uri tests 1105s # End of conversion tests 1105s TAP version 14 1105s # random seed: R02S8bc8a5b1dffd1e8dc6aa920c34ef0b90 1105s 1..58 1105s # Start of option tests 1105s ok 1 /option/basic 1105s ok 2 /option/translate 1105s ok 3 /option/strict-posix 1105s # Start of help tests 1105s ok 4 /option/help/options 1105s ok 5 /option/help/no-options 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1105s ok 6 /option/help/no-help-options 1105s # Usage: 1105s # /usr/libexec/installed-tests/glib/option-context [OPTION?] blabla 1105s # 1105s # Summary 1105s # 1105s # Help Options: 1105s # -h, --help Show help options 1105s # 1105s # Application Options: 1105s # -t, --test=Argument to use in test (deprecated) Test tests 1105s # --test2 Tests also 1105s # 1105s # Description 1105s # 1105s ok 7 /option/help/deprecated 1105s # End of help tests 1105s # Start of group tests 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1105s ok - glib/convert.test 1105s # Running test: glib/option-context.test 1105s ok - glib/option-context.test 1105s ok 8 /option/group/captions 1105s ok 9 /option/group/main 1105s ok 10 /option/group/error-hook 1105s ok 11 /option/group/parse 1105s # Start of captions tests 1105s # Start of subprocess tests 1105s # End of subprocess tests 1105s # End of captions tests 1105s # End of group tests 1105s # Start of restoration tests 1105s ok 12 /option/restoration/int 1105s ok 13 /option/restoration/string 1105s ok 14 /option/restoration/boolean 1105s # End of restoration tests 1105s # Start of arg tests 1105s ok 15 /option/arg/reverse-string 1105s ok 16 /option/arg/optional-int 1105s # Start of repetition tests 1105s ok 17 /option/arg/repetition/int 1105s ok 18 /option/arg/repetition/string 1105s ok 19 /option/arg/repetition/filename 1105s ok 20 /option/arg/repetition/double 1105s ok 21 /option/arg/repetition/locale 1105s ok 22 /option/arg/repetition/int64 1105s # End of repetition tests 1105s # Start of array tests 1105s ok 23 /option/arg/array/string 1105s # End of array tests 1105s # Start of callback tests 1105s ok 24 /option/arg/callback/string 1105s ok 25 /option/arg/callback/count 1105s ok 26 /option/arg/callback/optional1 1105s ok 27 /option/arg/callback/optional2 1105s ok 28 /option/arg/callback/optional3 1105s ok 29 /option/arg/callback/optional4 1105s ok 30 /option/arg/callback/optional5 1105s ok 31 /option/arg/callback/optional6 1105s ok 32 /option/arg/callback/optional7 1105s ok 33 /option/arg/callback/optional8 1105s # End of callback tests 1105s # Start of remaining tests 1105s ok 34 /option/arg/remaining/callback 1105s ok 35 /option/arg/remaining/callback-false 1105s ok 36 /option/arg/remaining/non-option 1105s ok 37 /option/arg/remaining/separator 1105s ok 38 /option/arg/remaining/array 1105s # End of remaining tests 1105s # Start of ignore tests 1105s ok 39 /option/arg/ignore/long 1105s ok 40 /option/arg/ignore/short 1105s ok 41 /option/arg/ignore/arg 1105s # End of ignore tests 1105s # Start of rest tests 1105s ok 42 /option/arg/rest/non-option 1105s ok 43 /option/arg/rest/separator1 1105s ok 44 /option/arg/rest/separator2 1105s ok 45 /option/arg/rest/separator3 1105s ok 46 /option/arg/rest/separator4 1105s ok 47 /option/arg/rest/separator5 1105s # End of rest tests 1105s # End of arg tests 1105s # Start of context tests 1105s ok 48 /option/context/add 1105s ok 49 /option/context/empty2 1105s ok 50 /option/context/empty3 1105s # End of context tests 1105s # Start of bug tests 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1105s ok 51 /option/bug/unknown-short 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1105s ok 52 /option/bug/lonely-dash 1105s ok 53 /option/bug/triple-dash 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1105s ok 54 /option/bug/missing-arg 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1105s ok 55 /option/bug/dash-arg 1105s # Running test: glib/win32-appinfo.test 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1105s ok 56 /option/bug/short-remaining 1105s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1105s ok 57 /option/bug/double-free 1105s ok 58 /option/bug/double-zero 1105s # End of bug tests 1105s # End of option tests 1105s TAP version 14 1105s # random seed: R02S1fe8f5d2d287c51dac08036403f3e475 1105s 1..5 1105s # Start of appinfo tests 1105s ok 1 /appinfo/utf16-strfuncs 1105s ok 2 /appinfo/win32-extract-executable 1105s ok 3 /appinfo/win32-rundll32-fixup 1105s ok 4 /appinfo/win32-parse-filename 1105s ok - glib/win32-appinfo.test 1105s # Running test: glib/queue.test 1105s ok 5 /appinfo/win32-utf16-conversion-fail 1105s # Start of subprocess tests 1105s # End of subprocess tests 1105s # End of appinfo tests 1105s TAP version 14 1105s # random seed: R02Se4a83e9bd403d8a235f86589a067cfa2 1105s 1..12 1105s # Start of queue tests 1105s ok 1 /queue/basic 1105s ok 2 /queue/copy 1105s ok 3 /queue/off-by-one 1105s ok 4 /queue/find-custom 1105s ok 5 /queue/static 1105s ok 6 /queue/clear 1105s ok 7 /queue/free-full 1105s ok 8 /queue/clear-full 1105s ok 9 /queue/insert-sibling-link 1105s ok 10 /queue/push-nth-link 1105s # Start of clear-full tests 1105s ok 11 /queue/clear-full/noop 1105s # End of clear-full tests 1105s # Start of random tests 1106s ok - glib/queue.test 1106s ok 12 /queue/random/seed:1638526129 1106s # End of random tests 1106s # End of queue tests 1106s # Running test: glib/gdbus-proxy.test 1106s TAP version 14 1106s # random seed: R02S0d8a8fa8e57ad3d443029603bd8235f2 1106s 1..5 1106s # Start of gdbus tests 1106s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/home 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/cache 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/system-config2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/config 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/system-data2 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/data 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/state 1106s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/.dirs/runtime 1110s ok 1 /gdbus/proxy 1110s # slow test /gdbus/proxy executed in 1.73 secs 1110s # Start of proxy tests 1110s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/home 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/cache 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/system-config2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/config 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/system-data2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/data 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/state 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-properties/.dirs/runtime 1110s # Executing: glib/gdbus-proxy.test 1110s ok 2 /gdbus/proxy/no-properties 1110s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/home 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/cache 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/config 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/data 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/state 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/wellknown-noauto/.dirs/runtime 1110s ok 3 /gdbus/proxy/wellknown-noauto 1110s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/home 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/cache 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/system-config2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/config 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/system-data2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/data 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/state 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/async/.dirs/runtime 1110s ok 4 /gdbus/proxy/async 1110s # slow test /gdbus/proxy/async executed in 1.73 secs 1110s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/home 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/cache 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/system-config2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/config 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/system-data2 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/data 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/state 1110s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_HFP452/gdbus/proxy/no-match-rule/.dirs/runtime 1110s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1110s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1111s ok - glib/gdbus-proxy.test 1111s ok 5 /gdbus/proxy/no-match-rule 1111s # slow test /gdbus/proxy/no-match-rule executed in 1.73 secs 1111s # End of proxy tests 1111s # End of gdbus tests 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # Running test: glib/genmarshal.py.test 1111s TAP version 13 1111s ok 1 __main__.TestGenmarshal.test_empty_list 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmpoe5yt7uf 1111s # /tmp/tmpoe5yt7uf/tmpoi6i5e0s.list: 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpoe5yt7uf/tmpoi6i5e0s.list', '--header', '--quiet'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # 1111s # #include 1111s # 1111s # G_BEGIN_DECLS 1111s # 1111s # 1111s # G_END_DECLS 1111s # 1111s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1111s # Error: 1111s # 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpoe5yt7uf/tmpoi6i5e0s.list', '--body', '--quiet'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #include 1111s # 1111s # #ifdef G_ENABLE_DEBUG 1111s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1111s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1111s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1111s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1111s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1111s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1111s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1111s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1111s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1111s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1111s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1111s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1111s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1111s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1111s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1111s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1111s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1111s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1111s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1111s # #else /* !G_ENABLE_DEBUG */ 1111s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1111s # * Do not access GValues directly in your code. Instead, use the 1111s # * g_value_get_*() functions 1111s # */ 1111s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1111s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1111s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1111s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1111s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1111s # #endif /* !G_ENABLE_DEBUG */ 1111s # Error: 1111s ok 2 __main__.TestGenmarshal.test_help 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmp8e2mlb53 1111s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1111s # Return code: 0 1111s # Output: 1111s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1111s # [--internal] [--valist-marshallers] [-v] 1111s # [--g-fatal-warnings] [--include-header [HEADER]] 1111s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1111s # [--prototypes] [--header] [--body] [--stdinc | 1111s # --nostdinc] [--quiet | --verbose] 1111s # [FILE ...] 1111s # 1111s # Generate signal marshallers for GObject 1111s # 1111s # positional arguments: 1111s # FILE Files with lists of marshallers to generate, or "-" 1111s # for standard input 1111s # 1111s # options: 1111s # -h, --help show this help message and exit 1111s # --prefix STRING Specify marshaller prefix 1111s # --output FILE Write output into the specified file 1111s # --skip-source Skip source location comments 1111s # --internal Mark generated functions as internal 1111s # --valist-marshallers Generate va_list marshallers 1111s # -v, --version Print version information, and exit 1111s # --g-fatal-warnings Make warnings fatal 1111s # --include-header [HEADER] 1111s # Include the specified header in the body 1111s # --pragma-once Use "pragma once" as the inclusion guard 1111s # -D CPP_DEFINES Pre-processor define 1111s # -U CPP_UNDEFINES Pre-processor undefine 1111s # --prototypes Generate the marshallers prototype in the C code 1111s # --header Generate C headers 1111s # --body Generate C code 1111s # --stdinc Include standard marshallers 1111s # --nostdinc Use standard marshallers 1111s # --quiet Only print warnings and errors 1111s # --verbose Be verbose, and include debugging information 1111s # Error: 1111s ok 3 __main__.TestGenmarshal.test_no_args 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmpos48s5gu 1111s # Running: ['/usr/bin/glib-genmarshal'] 1111s # Return code: 0 1111s # Output: 1111s # 1111s # Error: 1111s ok 4 __main__.TestGenmarshal.test_void_boolean 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmpiiuevemd 1111s # /tmp/tmpiiuevemd/tmp5lq3i3_5.list: VOID:BOOLEAN 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpiiuevemd/tmp5lq3i3_5.list', '--header', '--quiet'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # 1111s # #include 1111s # 1111s # G_BEGIN_DECLS 1111s # 1111s # /* VOID:BOOLEAN (/tmp/tmpiiuevemd/tmp5lq3i3_5.list:1) */ 1111s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1111s # 1111s # 1111s # G_END_DECLS 1111s # 1111s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1111s # Error: 1111s # 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpiiuevemd/tmp5lq3i3_5.list', '--body', '--quiet'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #include 1111s # 1111s # #ifdef G_ENABLE_DEBUG 1111s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1111s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1111s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1111s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1111s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1111s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1111s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1111s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1111s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1111s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1111s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1111s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1111s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1111s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1111s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1111s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1111s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1111s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1111s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1111s # #else /* !G_ENABLE_DEBUG */ 1111s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1111s # * Do not access GValues directly in your code. Instead, use the 1111s # * g_value_get_*() functions 1111s # */ 1111s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1111s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1111s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1111s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1111s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1111s # #endif /* !G_ENABLE_DEBUG */ 1111s # Error: 1111s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmpo85xodyo 1111s # /tmp/tmpo85xodyo/tmpl7jdbc2r.list: VOID:BOOLEAN,INT64 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpo85xodyo/tmpl7jdbc2r.list', '--header', '--quiet'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # 1111s # #include 1111s # 1111s # G_BEGIN_DECLS 1111s # 1111s # /* VOID:BOOLEAN,INT64 (/tmp/tmpo85xodyo/tmpl7jdbc2r.list:1) */ 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1111s # GValue *return_value, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint, 1111s # gpointer marshal_data); 1111s # 1111s # 1111s # G_END_DECLS 1111s # 1111s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1111s # Error: 1111s # 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpo85xodyo/tmpl7jdbc2r.list', '--body', '--quiet'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #include 1111s # 1111s # #ifdef G_ENABLE_DEBUG 1111s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1111s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1111s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1111s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1111s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1111s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1111s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1111s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1111s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1111s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1111s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1111s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1111s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1111s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1111s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1111s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1111s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1111s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1111s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1111s # #else /* !G_ENABLE_DEBUG */ 1111s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1111s # * Do not access GValues directly in your code. Instead, use the 1111s # * g_value_get_*() functions 1111s # */ 1111s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1111s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1111s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1111s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1111s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1111s # #endif /* !G_ENABLE_DEBUG */ 1111s # 1111s # /* VOID:BOOLEAN,INT64 (/tmp/tmpo85xodyo/tmpl7jdbc2r.list:1) */ 1111s # void 1111s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint G_GNUC_UNUSED, 1111s # gpointer marshal_data) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1111s # gboolean arg1, 1111s # gint64 arg2, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1111s # 1111s # g_return_if_fail (n_param_values == 3); 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = g_value_peek_pointer (param_values + 0); 1111s # } 1111s # else 1111s # { 1111s # data1 = g_value_peek_pointer (param_values + 0); 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # g_marshal_value_peek_boolean (param_values + 1), 1111s # g_marshal_value_peek_int64 (param_values + 2), 1111s # data2); 1111s # } 1111s # Error: 1111s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmpv3758ga7 1111s # /tmp/tmpv3758ga7/tmpis_fp301.list: VOID:PARAM 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpv3758ga7/tmpis_fp301.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # 1111s # G_BEGIN_DECLS 1111s # 1111s # /* VOID:PARAM (/tmp/tmpv3758ga7/tmpis_fp301.list:1) */ 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1111s # GValue *return_value, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint, 1111s # gpointer marshal_data); 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1111s # GValue *return_value, 1111s # gpointer instance, 1111s # va_list args, 1111s # gpointer marshal_data, 1111s # int n_params, 1111s # GType *param_types); 1111s # 1111s # 1111s # G_END_DECLS 1111s # 1111s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1111s # Error: 1111s # 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpv3758ga7/tmpis_fp301.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifdef G_ENABLE_DEBUG 1111s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1111s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1111s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1111s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1111s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1111s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1111s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1111s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1111s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1111s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1111s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1111s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1111s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1111s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1111s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1111s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1111s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1111s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1111s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1111s # #else /* !G_ENABLE_DEBUG */ 1111s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1111s # * Do not access GValues directly in your code. Instead, use the 1111s # * g_value_get_*() functions 1111s # */ 1111s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1111s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1111s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1111s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1111s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1111s # #endif /* !G_ENABLE_DEBUG */ 1111s # 1111s # /* VOID:PARAM (/tmp/tmpv3758ga7/tmpis_fp301.list:1) */ 1111s # void 1111s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint G_GNUC_UNUSED, 1111s # gpointer marshal_data) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1111s # gpointer arg1, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__PARAM callback; 1111s # 1111s # g_return_if_fail (n_param_values == 2); 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = g_value_peek_pointer (param_values + 0); 1111s # } 1111s # else 1111s # { 1111s # data1 = g_value_peek_pointer (param_values + 0); 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # g_marshal_value_peek_param (param_values + 1), 1111s # data2); 1111s # } 1111s # 1111s # void 1111s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # gpointer instance, 1111s # va_list args, 1111s # gpointer marshal_data, 1111s # int n_params, 1111s # GType *param_types) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1111s # gpointer arg1, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__PARAM callback; 1111s # gpointer arg0; 1111s # va_list args_copy; 1111s # 1111s # va_copy (args_copy, args); 1111s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1111s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1111s # arg0 = g_param_spec_ref (arg0); 1111s # va_end (args_copy); 1111s # 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = instance; 1111s # } 1111s # else 1111s # { 1111s # data1 = instance; 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # arg0, 1111s # data2); 1111s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1111s # g_param_spec_unref (arg0); 1111s # } 1111s # Error: 1111s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmpd15maxij 1111s # /tmp/tmpd15maxij/tmp93cb20nc.list: VOID:STRING 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpd15maxij/tmp93cb20nc.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # 1111s # G_BEGIN_DECLS 1111s # 1111s # /* VOID:STRING (/tmp/tmpd15maxij/tmp93cb20nc.list:1) */ 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1111s # GValue *return_value, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint, 1111s # gpointer marshal_data); 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1111s # GValue *return_value, 1111s # gpointer instance, 1111s # va_list args, 1111s # gpointer marshal_data, 1111s # int n_params, 1111s # GType *param_types); 1111s # 1111s # 1111s # G_END_DECLS 1111s # 1111s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1111s # Error: 1111s # 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpd15maxij/tmp93cb20nc.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifdef G_ENABLE_DEBUG 1111s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1111s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1111s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1111s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1111s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1111s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1111s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1111s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1111s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1111s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1111s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1111s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1111s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1111s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1111s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1111s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1111s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1111s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1111s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1111s # #else /* !G_ENABLE_DEBUG */ 1111s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1111s # * Do not access GValues directly in your code. Instead, use the 1111s # * g_value_get_*() functions 1111s # */ 1111s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1111s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1111s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1111s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1111s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1111s # #endif /* !G_ENABLE_DEBUG */ 1111s # 1111s # /* VOID:STRING (/tmp/tmpd15maxij/tmp93cb20nc.list:1) */ 1111s # void 1111s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint G_GNUC_UNUSED, 1111s # gpointer marshal_data) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1111s # gpointer arg1, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__STRING callback; 1111s # 1111s # g_return_if_fail (n_param_values == 2); 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = g_value_peek_pointer (param_values + 0); 1111s # } 1111s # else 1111s # { 1111s # data1 = g_value_peek_pointer (param_values + 0); 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # g_marshal_value_peek_string (param_values + 1), 1111s # data2); 1111s # } 1111s # 1111s # void 1111s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # gpointer instance, 1111s # va_list args, 1111s # gpointer marshal_data, 1111s # int n_params, 1111s # GType *param_types) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1111s # gpointer arg1, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__STRING callback; 1111s # gpointer arg0; 1111s # va_list args_copy; 1111s # 1111s # va_copy (args_copy, args); 1111s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1111s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1111s # arg0 = g_strdup (arg0); 1111s # va_end (args_copy); 1111s # 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = instance; 1111s # } 1111s # else 1111s # { 1111s # data1 = instance; 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # arg0, 1111s # data2); 1111s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1111s # g_free (arg0); 1111s # } 1111s # Error: 1111s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1111s # glib-genmarshal: /usr/bin/glib-genmarshal 1111s # tmpdir: /tmp/tmp0a930hld 1111s # /tmp/tmp0a930hld/tmpu6mb4eis.list: VOID:VARIANT 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp0a930hld/tmpu6mb4eis.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1111s # 1111s # G_BEGIN_DECLS 1111s # 1111s # /* VOID:VARIANT (/tmp/tmp0a930hld/tmpu6mb4eis.list:1) */ 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1111s # GValue *return_value, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint, 1111s # gpointer marshal_data); 1111s # extern 1111s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1111s # GValue *return_value, 1111s # gpointer instance, 1111s # va_list args, 1111s # gpointer marshal_data, 1111s # int n_params, 1111s # GType *param_types); 1111s # 1111s # 1111s # G_END_DECLS 1111s # 1111s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1111s # Error: 1111s # 1111s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmp0a930hld/tmpu6mb4eis.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1111s # Return code: 0 1111s # Output: 1111s # /* 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. */ 1111s # #ifdef G_ENABLE_DEBUG 1111s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1111s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1111s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1111s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1111s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1111s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1111s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1111s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1111s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1111s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1111s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1111s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1111s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1111s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1111s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1111s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1111s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1111s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1111s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1111s # #else /* !G_ENABLE_DEBUG */ 1111s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1111s # * Do not access GValues directly in your code. Instead, use the 1111s # * g_value_get_*() functions 1111s # */ 1111s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1111s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1111s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1111s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1111s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1111s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1111s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1111s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1111s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1111s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1111s # #endif /* !G_ENABLE_DEBUG */ 1111s # 1111s # /* VOID:VARIANT (/tmp/tmp0a930hld/tmpu6mb4eis.list:1) */ 1111s # void 1111s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # guint n_param_values, 1111s # const GValue *param_values, 1111s # gpointer invocation_hint G_GNUC_UNUSED, 1111s # gpointer marshal_data) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1111s # gpointer arg1, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__VARIANT callback; 1111s # 1111s # g_return_if_fail (n_param_values == 2); 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = g_value_peek_pointer (param_values + 0); 1111s # } 1111s # else 1111s # { 1111s # data1 = g_value_peek_pointer (param_values + 0); 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # g_marshal_value_peek_variant (param_values + 1), 1111s # data2); 1111s # } 1111s # 1111s # void 1111s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1111s # GValue *return_value G_GNUC_UNUSED, 1111s # gpointer instance, 1111s # va_list args, 1111s # gpointer marshal_data, 1111s # int n_params, 1111s # GType *param_types) 1111s # { 1111s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1111s # gpointer arg1, 1111s # gpointer data2); 1111s # GCClosure *cc = (GCClosure *) closure; 1111s # gpointer data1, data2; 1111s # GMarshalFunc_VOID__VARIANT callback; 1111s # gpointer arg0; 1111s # va_list args_copy; 1111s # 1111s # va_copy (args_copy, args); 1111s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1111s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1111s # arg0 = g_variant_ref_sink (arg0); 1111s # va_end (args_copy); 1111s # 1111s # 1111s # if (G_CCLOSURE_SWAP_DATA (closure)) 1111s # { 1111s # data1 = closure->data; 1111s # data2 = instance; 1111s # } 1111s # else 1111s # { 1111s # data1 = instance; 1111s # data2 = closure->data; 1111s # } 1111s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1111s # 1111s # callback (data1, 1111s # arg0, 1111s # data2); 1111s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1111s # g_variant_unref (arg0); 1111s # } 1111s # Error: 1111s 1..8 1111s ok - glib/genmarshal.py.test 1111s # Running test: glib/gdbus-subscribe.test 1111s TAP version 14 1111s # random seed: R02Sdd7aa6ebdefafdbd39cb702d69a0e6e8 1111s 1..24 1111s # Start of gdbus tests 1111s # Start of subscribe tests 1111s # Start of conn tests 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/simple/.dirs/runtime 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1111s # Step 0: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 1: adding subscription 1111s # Sender: (any) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 2: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 2 1111s # Received Finished signal from subscriber :1.0 1111s # Received Finished signal from service :1.1 1111s # Received Finished signal from service 2 :1.2 1111s # Received Finished signal from attacker :1.3 1111s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s ok 1 /gdbus/subscribe/conn/simple 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1111s # Step 0: adding subscription 1111s # Sender: (any) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 1: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 2: emitting signal 1111s # Sender: service 2 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 3: emitting signal 1111s # Sender: service 1111s # Destination: subscriber :1.0 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 4: emitting signal 1111s # Sender: service 2 1111s # Destination: subscriber :1.0 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 1 1111s # Signal received from service 2 :1.2 1111s # Signal received from service 2 :1.2 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 2 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 3 1111s # Signal received from service 2 :1.2 1111s # Signal received from service 2 :1.2 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 4 1111s # Received Finished signal from subscriber :1.0 1111s # Received Finished signal from service :1.1 1111s # Received Finished signal from service 2 :1.2 1111s # Received Finished signal from attacker :1.3 1111s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1111s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1111s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1111s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/match_twice/.dirs/runtime 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1111s # Step 0: adding subscription 1111s # Sender: service :1.1 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 1: adding subscription 1111s # Sender: (any) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: (any) 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 2: adding subscription 1111s # Sender: (any) 1111s # Path: (any) 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 3: adding subscription 1111s # Sender: service :1.1 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 4: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 4 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 4 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 4 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 4 1111s # Received Finished signal from subscriber :1.0 1111s # Received Finished signal from service :1.1 1111s # Received Finished signal from service 2 :1.2 1111s # Received Finished signal from attacker :1.3 1111s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s ok 3 /gdbus/subscribe/conn/match_twice 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1111s # Step 0: adding subscription 1111s # Sender: service :1.1 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 1: emitting signal 1111s # Sender: attacker 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 2: emitting signal 1111s # Sender: attacker 1111s # Destination: subscriber :1.0 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 3: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 3 1111s # Received Finished signal from subscriber :1.0 1111s # Received Finished signal from service :1.1 1111s # Received Finished signal from service 2 :1.2 1111s # Received Finished signal from attacker :1.3 1111s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1111s # Step 0: adding subscription 1111s # Sender: :0.this.had.better.not.exist 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 1: emitting signal 1111s # Sender: attacker 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 2: emitting signal 1111s # Sender: attacker 1111s # Destination: subscriber :1.0 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Received Finished signal from subscriber :1.0 1111s # Received Finished signal from service :1.1 1111s # Received Finished signal from service 2 :1.2 1111s # Received Finished signal from attacker :1.3 1111s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /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 1111s # Step 0: claiming bus name 1111s # Name: org.gtk.Test.AlreadyOwned 1111s # Owner: service 1111s # Step 1: adding subscription 1111s # Sender: org.gtk.Test.AlreadyOwned 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 2: adding subscription 1111s # Sender: org.gtk.Test.OwnedLater 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 3: emitting signal 1111s # Sender: attacker 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 4: emitting signal 1111s # Sender: attacker 1111s # Destination: subscriber :1.0 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 5: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Step 6: claiming bus name 1111s # Name: org.gtk.Test.OwnedLater 1111s # Owner: service 1111s # Step 7: emitting signal 1111s # Sender: service 1111s # Destination: (broadcast) 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Waiting for signal to reach message bus 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 5 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 7 1111s # Signal received from service :1.1 1111s # Signal received from service :1.1 via connection 1111s # Path: /org/gtk/GDBus/ExampleInterface 1111s # Interface: org.gtk.GDBus.ExampleInterface 1111s # Member: Foo 1111s # Argument 0: (not a string) 1111s # Sent in step: 7 1111s # Received Finished signal from subscriber :1.0 1111s # Received Finished signal from service :1.1 1111s # Received Finished signal from service 2 :1.2 1111s # Received Finished signal from attacker :1.3 1111s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1111s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1111s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1111s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1111s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1111s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1111s # subscriber is :1.0 1111s # service is :1.1 1111s # service 2 is :1.2 1111s # attacker is :1.3 1111s # Waiting for AddMatch to be processed 1111s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1111s # Step 0: adding subscription 1111s # Sender: org.freedesktop.DBus 1111s # Path: /org/freedesktop/DBus 1111s # Interface: org.freedesktop.DBus 1111s # Member: (any) 1111s # String argument 0: (any) 1111s # Flags: 0 1111s # Subscribing via connection 1111s # Waiting for AddMatch to be processed 1111s # Step 1: emitting signal 1111s # Sender: attacker 1111s # Destination: (broadcast) 1111s # Path: /org/freedesktop/DBus 1111s # Interface: org.freedesktop.DBus 1111s # Member: NameOwnerChanged 1111s # String argument 0: would I lie to you? 1111s # Waiting for signal to reach message bus 1111s # Step 2: emitting signal 1111s # Sender: attacker 1111s # Destination: subscriber :1.0 1111s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Waiting for signal to reach message bus 1112s # Step 3: claiming bus name 1112s # Name: org.gtk.Test.OwnedLater 1112s # Owner: service 1112s # Signal received from message bus org.freedesktop.DBus 1112s # Signal received from (unused) org.freedesktop.DBus via connection 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1112s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 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 7 /gdbus/subscribe/conn/limit_to_message_bus 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/conn/unsubscribe_immediately/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1112s # Step 0: claiming bus name 1112s # Name: org.gtk.Test.AlreadyOwned 1112s # Owner: service 1112s # Step 1: adding subscription 1112s # Sender: org.gtk.Test.AlreadyOwned 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Immediately unsubscribing 1112s # Waiting for AddMatch to be processed 1112s # Step 2: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 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 8 /gdbus/subscribe/conn/unsubscribe_immediately 1112s # End of conn tests 1112s # Start of proxy tests 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/simple/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1112s # Step 0: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 1: adding subscription 1112s # Sender: (any) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 2: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 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 9 /gdbus/subscribe/proxy/simple 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/broadcast_from_anyone/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1112s # Step 0: adding subscription 1112s # Sender: (any) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: service 2 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 3: emitting signal 1112s # Sender: service 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 4: emitting signal 1112s # Sender: service 2 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 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 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/match_twice/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1112s # Step 0: adding subscription 1112s # Sender: service :1.1 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: adding subscription 1112s # Sender: (any) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: (any) 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 2: adding subscription 1112s # Sender: (any) 1112s # Path: (any) 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 3: adding subscription 1112s # Sender: service :1.1 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 4: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 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 11 /gdbus/subscribe/proxy/match_twice 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_unique_name/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1112s # Step 0: adding subscription 1112s # Sender: service :1.1 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 3: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 3 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 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 12 /gdbus/subscribe/proxy/limit_by_unique_name 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/nonexistent_unique_name/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1112s # Step 0: adding subscription 1112s # Sender: :0.this.had.better.not.exist 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 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 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_by_well_known_name/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /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 1112s # Step 0: claiming bus name 1112s # Name: org.gtk.Test.AlreadyOwned 1112s # Owner: service 1112s # Step 1: adding subscription 1112s # Sender: org.gtk.Test.AlreadyOwned 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 2: adding subscription 1112s # Sender: org.gtk.Test.OwnedLater 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 3: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 4: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 5: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 6: claiming bus name 1112s # Name: org.gtk.Test.OwnedLater 1112s # Owner: service 1112s # Step 7: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 5 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 7 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 7 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1112s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 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 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/limit_to_message_bus/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1112s # Step 0: adding subscription 1112s # Sender: org.freedesktop.DBus 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # String argument 0: would I lie to you? 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Waiting for signal to reach message bus 1112s # Step 3: claiming bus name 1112s # Name: org.gtk.Test.OwnedLater 1112s # Owner: service 1112s # Signal received from message bus org.freedesktop.DBus 1112s # Signal received from (unused) org.freedesktop.DBus via proxy 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1112s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 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 15 /gdbus/subscribe/proxy/limit_to_message_bus 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/proxy/unsubscribe_immediately/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1112s # Step 0: claiming bus name 1112s # Name: org.gtk.Test.AlreadyOwned 1112s # Owner: service 1112s # Step 1: adding subscription 1112s # Sender: org.gtk.Test.AlreadyOwned 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 2: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 2 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 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 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1112s # End of proxy tests 1112s # Start of parallel tests 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/simple/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1112s # Step 0: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 1: adding subscription 1112s # Sender: (any) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 2: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 2 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 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 17 /gdbus/subscribe/parallel/simple 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/broadcast_from_anyone/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1112s # Step 0: adding subscription 1112s # Sender: (any) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: service 2 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 3: emitting signal 1112s # Sender: service 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 4: emitting signal 1112s # Sender: service 2 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 1 1112s # Signal received from service 2 :1.2 1112s # Signal received from service 2 :1.2 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 2 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 3 1112s # Signal received from service 2 :1.2 1112s # Signal received from service 2 :1.2 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 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 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/match_twice/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1112s # Step 0: adding subscription 1112s # Sender: service :1.1 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: adding subscription 1112s # Sender: (any) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: (any) 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 2: adding subscription 1112s # Sender: (any) 1112s # Path: (any) 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Cannot subscribe via proxy: no bus name 1112s # Waiting for AddMatch to be processed 1112s # Step 3: adding subscription 1112s # Sender: service :1.1 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 4: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 4 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1112s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 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 19 /gdbus/subscribe/parallel/match_twice 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_unique_name/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1112s # Step 0: adding subscription 1112s # Sender: service :1.1 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 3: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 3 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 3 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 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 20 /gdbus/subscribe/parallel/limit_by_unique_name 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/nonexistent_unique_name/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1112s # Step 0: adding subscription 1112s # Sender: :0.this.had.better.not.exist 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 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 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_by_well_known_name/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /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 1112s # Step 0: claiming bus name 1112s # Name: org.gtk.Test.AlreadyOwned 1112s # Owner: service 1112s # Step 1: adding subscription 1112s # Sender: org.gtk.Test.AlreadyOwned 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 2: adding subscription 1112s # Sender: org.gtk.Test.OwnedLater 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 3: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 4: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 5: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Step 6: claiming bus name 1112s # Name: org.gtk.Test.OwnedLater 1112s # Owner: service 1112s # Step 7: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 5 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 5 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 7 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 7 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via connection 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 7 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 7 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1112s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1112s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1112s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1112s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 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 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/limit_to_message_bus/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s # subscriber is :1.0 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1112s # Step 0: adding subscription 1112s # Sender: org.freedesktop.DBus 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 1: emitting signal 1112s # Sender: attacker 1112s # Destination: (broadcast) 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # String argument 0: would I lie to you? 1112s # Waiting for signal to reach message bus 1112s # Step 2: emitting signal 1112s # Sender: attacker 1112s # Destination: subscriber :1.0 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Waiting for signal to reach message bus 1112s # Step 3: claiming bus name 1112s # Name: org.gtk.Test.OwnedLater 1112s # Owner: service 1112s # Signal received from message bus org.freedesktop.DBus 1112s # Signal received from (unused) org.freedesktop.DBus via connection 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Signal received from message bus org.freedesktop.DBus 1112s # Signal received from (unused) org.freedesktop.DBus via proxy 1112s # Path: /org/freedesktop/DBus 1112s # Interface: org.freedesktop.DBus 1112s # Member: NameOwnerChanged 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1112s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1112s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 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 23 /gdbus/subscribe/parallel/limit_to_message_bus 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_W5T052/gdbus/subscribe/parallel/unsubscribe_immediately/.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 # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1112s ok - glib/gdbus-subscribe.test 1112s # subscriber is :1.0 1112s # Running test: glib/io-channel-basic.test 1112s # service is :1.1 1112s # service 2 is :1.2 1112s # attacker is :1.3 1112s # Waiting for AddMatch to be processed 1112s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1112s # Step 0: claiming bus name 1112s # Name: org.gtk.Test.AlreadyOwned 1112s # Owner: service 1112s # Step 1: adding subscription 1112s # Sender: org.gtk.Test.AlreadyOwned 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: (any) 1112s # String argument 0: (any) 1112s # Flags: 0 1112s # Subscribing via connection 1112s # Immediately unsubscribing 1112s # Subscribing via proxy 1112s # Waiting for AddMatch to be processed 1112s # Step 2: emitting signal 1112s # Sender: service 1112s # Destination: (broadcast) 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Waiting for signal to reach message bus 1112s # Signal received from service :1.1 1112s # Signal received from service :1.1 via proxy 1112s # Path: /org/gtk/GDBus/ExampleInterface 1112s # Interface: org.gtk.GDBus.ExampleInterface 1112s # Member: Foo 1112s # Argument 0: (not a string) 1112s # Sent in step: 2 1112s # Received Finished signal from subscriber :1.0 1112s # Received Finished signal from service :1.1 1112s # Received Finished signal from service 2 :1.2 1112s # Received Finished signal from attacker :1.3 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1112s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1112s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1112s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 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 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1112s # End of parallel tests 1112s # End of subscribe tests 1112s # End of gdbus tests 1112s TAP version 14 1112s # random seed: R02S9657fe74227251199b7b247e8bfbbe96 1112s 1..1 1112s # Start of gio tests 1112s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1112s # random seed: R02S577c5e4227ba34632780b0de9e2e47f7 1112s # GLib-DEBUG: io-channel-basic: child writing 8+1695 bytes to 6 1112s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1112s # GLib-DEBUG: io-channel-basic: ...from 5: 1695 bytes 1112s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1112s # GLib-DEBUG: io-channel-basic: child writing 8+4045 bytes to 6 1112s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1112s # GLib-DEBUG: io-channel-basic: ...from 5: 4045 bytes 1112s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1112s # GLib-DEBUG: io-channel-basic: child writing 8+3808 bytes to 6 1112s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1112s # GLib-DEBUG: io-channel-basic: ...from 5: 3808 bytes 1112s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1113s # GLib-DEBUG: io-channel-basic: child writing 8+410 bytes to 6 1113s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1113s # GLib-DEBUG: io-channel-basic: ...from 5: 410 bytes 1113s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1113s # Executing: glib/io-channel-basic.test 1113s # GLib-DEBUG: io-channel-basic: child writing 8+2494 bytes to 6 1113s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1113s # GLib-DEBUG: io-channel-basic: ...from 5: 2494 bytes 1113s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+3599 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 3599 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+322 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 322 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+3646 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 3646 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+2542 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 2542 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+1598 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 1598 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+4469 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 4469 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+2777 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 2777 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+3289 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 3289 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+1881 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 1881 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+1144 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 1144 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+1638 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 1638 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+1800 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 1800 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1116s # GLib-DEBUG: io-channel-basic: child writing 8+820 bytes to 6 1116s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1116s # GLib-DEBUG: io-channel-basic: ...from 5: 820 bytes 1116s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+427 bytes to 6 1117s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 5: 427 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+1938 bytes to 6 1117s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1117s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1117s # GLib-DEBUG: io-channel-basic: ...from 5: 1938 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1117s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1117s # random seed: R02S2210312460bf3cf6d04deee5b5dbda3a 1117s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1117s # random seed: R02Sb8f19e628d3d5efb62e56d9b90878520 1117s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1117s # random seed: R02Sc1d9d068013643012fae050c7502d3e8 1117s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1117s # random seed: R02S58c40a4d219b30aa96e5193b044dac86 1117s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1117s # random seed: R02S8ec720958586a8b94e27ea635472df62 1117s # GLib-DEBUG: io-channel-basic: child writing 8+4567 bytes to 11 1117s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 10: 4567 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+2299 bytes to 15 1117s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 14: 2299 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+1367 bytes to 9 1117s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 8: 1367 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+32 bytes to 13 1117s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 12: 32 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+4788 bytes to 17 1117s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 16: 4788 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+3563 bytes to 11 1117s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 10: 3563 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+3722 bytes to 13 1117s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 12: 3722 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+1519 bytes to 17 1117s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 16: 1519 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+1184 bytes to 15 1117s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 14: 1184 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1117s # GLib-DEBUG: io-channel-basic: child writing 8+4127 bytes to 9 1117s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1117s # GLib-DEBUG: io-channel-basic: ...from 8: 4127 bytes 1117s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+3686 bytes to 11 1118s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 10: 3686 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+246 bytes to 13 1118s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 12: 246 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+2308 bytes to 9 1118s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 8: 2308 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+4136 bytes to 15 1118s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 14: 4136 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+177 bytes to 17 1118s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 16: 177 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+3867 bytes to 11 1118s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 10: 3867 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+4214 bytes to 9 1118s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 8: 4214 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+2411 bytes to 13 1118s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 12: 2411 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+3367 bytes to 15 1118s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 14: 3367 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+2001 bytes to 17 1118s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 16: 2001 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1118s # Executing: glib/io-channel-basic.test 1118s # GLib-DEBUG: io-channel-basic: child writing 8+1652 bytes to 11 1118s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 10: 1652 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+4341 bytes to 13 1118s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 12: 4341 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+1721 bytes to 15 1118s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 14: 1721 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+4724 bytes to 9 1118s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 8: 4724 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+1255 bytes to 17 1118s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 16: 1255 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+853 bytes to 11 1118s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 10: 853 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+1246 bytes to 13 1118s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 12: 1246 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+53 bytes to 15 1118s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 14: 53 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+2594 bytes to 9 1118s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 8: 2594 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1118s # GLib-DEBUG: io-channel-basic: child writing 8+4714 bytes to 17 1118s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1118s # GLib-DEBUG: io-channel-basic: ...from 16: 4714 bytes 1118s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+2048 bytes to 11 1119s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 10: 2048 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+4277 bytes to 13 1119s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 12: 4277 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+4645 bytes to 9 1119s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 8: 4645 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+3103 bytes to 15 1119s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 14: 3103 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+22 bytes to 17 1119s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 16: 22 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+30 bytes to 11 1119s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 10: 30 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+970 bytes to 13 1119s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 12: 970 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+4643 bytes to 9 1119s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 8: 4643 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+4223 bytes to 15 1119s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 14: 4223 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+2594 bytes to 17 1119s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 16: 2594 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+2461 bytes to 11 1119s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 10: 2461 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+3535 bytes to 13 1119s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 12: 3535 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+141 bytes to 9 1119s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 8: 141 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+3080 bytes to 15 1119s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 14: 3080 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+3319 bytes to 17 1119s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 16: 3319 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+944 bytes to 11 1119s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 10: 944 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1119s # GLib-DEBUG: io-channel-basic: child writing 8+3631 bytes to 13 1119s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1119s # GLib-DEBUG: io-channel-basic: ...from 12: 3631 bytes 1119s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+444 bytes to 9 1120s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 8: 444 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+3941 bytes to 15 1120s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 14: 3941 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+3507 bytes to 17 1120s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 16: 3507 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+88 bytes to 11 1120s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 10: 88 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+3261 bytes to 13 1120s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 12: 3261 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+2493 bytes to 9 1120s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 8: 2493 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+1256 bytes to 15 1120s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 14: 1256 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+4326 bytes to 17 1120s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 16: 4326 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+1064 bytes to 11 1120s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 10: 1064 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+2482 bytes to 13 1120s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 12: 2482 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+2140 bytes to 9 1120s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 8: 2140 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+4835 bytes to 15 1120s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 14: 4835 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+4517 bytes to 17 1120s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 16: 4517 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+3115 bytes to 11 1120s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 10: 3115 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+136 bytes to 13 1120s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 12: 136 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+4154 bytes to 9 1120s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 8: 4154 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+292 bytes to 15 1120s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 14: 292 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+4347 bytes to 17 1120s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 16: 4347 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1120s # GLib-DEBUG: io-channel-basic: child writing 8+4788 bytes to 11 1120s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1120s # GLib-DEBUG: io-channel-basic: ...from 10: 4788 bytes 1120s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+1116 bytes to 13 1121s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 12: 1116 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+960 bytes to 9 1121s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 8: 960 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+4827 bytes to 15 1121s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 14: 4827 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+1086 bytes to 17 1121s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 16: 1086 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+310 bytes to 11 1121s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 10: 310 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2298 bytes to 13 1121s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 12: 2298 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2467 bytes to 9 1121s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 8: 2467 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+572 bytes to 15 1121s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 14: 572 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2763 bytes to 17 1121s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 16: 2763 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+4113 bytes to 11 1121s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 10: 4113 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+4952 bytes to 13 1121s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 12: 4952 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2496 bytes to 9 1121s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 8: 2496 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2060 bytes to 15 1121s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 14: 2060 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+1765 bytes to 17 1121s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 16: 1765 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2723 bytes to 11 1121s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 10: 2723 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+1439 bytes to 13 1121s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 12: 1439 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+608 bytes to 9 1121s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 8: 608 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+2466 bytes to 15 1121s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 14: 2466 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1121s # GLib-DEBUG: io-channel-basic: child writing 8+1235 bytes to 17 1121s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1121s # GLib-DEBUG: io-channel-basic: ...from 16: 1235 bytes 1121s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+1873 bytes to 11 1122s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 10: 1873 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+2383 bytes to 13 1122s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 12: 2383 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+54 bytes to 9 1122s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 8: 54 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+1314 bytes to 15 1122s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 14: 1314 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+4846 bytes to 17 1122s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 16: 4846 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+2088 bytes to 11 1122s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 10: 2088 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+2923 bytes to 13 1122s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 12: 2923 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+4962 bytes to 9 1122s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 8: 4962 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+2605 bytes to 15 1122s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 14: 2605 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+1562 bytes to 17 1122s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 16: 1562 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+3443 bytes to 11 1122s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 10: 3443 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+1836 bytes to 13 1122s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 12: 1836 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+511 bytes to 9 1122s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 8: 511 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+3842 bytes to 15 1122s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 14: 3842 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+1307 bytes to 17 1122s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1122s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1122s # GLib-DEBUG: io-channel-basic: ...from 16: 1307 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+4975 bytes to 11 1122s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 10: 4975 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+1535 bytes to 9 1122s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1122s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1122s # GLib-DEBUG: io-channel-basic: ...from 8: 1535 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+2532 bytes to 13 1122s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 12: 2532 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1122s # GLib-DEBUG: io-channel-basic: child writing 8+3168 bytes to 15 1122s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1122s # GLib-DEBUG: io-channel-basic: ...from 14: 3168 bytes 1122s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1123s # GLib-DEBUG: io-channel-basic: child writing 8+4033 bytes to 11 1123s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1123s # GLib-DEBUG: io-channel-basic: ...from 10: 4033 bytes 1123s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1123s # GLib-DEBUG: io-channel-basic: child writing 8+1990 bytes to 13 1123s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1123s # GLib-DEBUG: io-channel-basic: ...from 12: 1990 bytes 1123s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1123s # GLib-DEBUG: io-channel-basic: child writing 8+848 bytes to 15 1123s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1123s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1123s # GLib-DEBUG: io-channel-basic: ...from 14: 848 bytes 1123s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1123s # GLib-DEBUG: io-channel-basic: child writing 8+2553 bytes to 11 1123s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1123s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1123s # GLib-DEBUG: io-channel-basic: ...from 10: 2553 bytes 1123s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1123s # GLib-DEBUG: io-channel-basic: child writing 8+3154 bytes to 13 1123s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1123s # GLib-DEBUG: io-channel-basic: ...from 12: HUP IN 1123s # GLib-DEBUG: io-channel-basic: ...from 12: 3154 bytes 1123s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1123s ok 1 /gio/io-basics 1123s # slow test /gio/io-basics executed in 11.22 secs 1123s # End of gio tests 1123s ok - glib/io-channel-basic.test 1123s # Running test: glib/checksum.test 1123s TAP version 14 1123s # random seed: R02Sc8e029cf199b2a402d751ef8d2306168 1123s 1..1851 1123s # Start of checksum tests 1123s ok 1 /checksum/unsupported 1123s # Start of MD5 tests 1123s ok 2 /checksum/MD5/0 1123s ok 3 /checksum/MD5/1 1123s ok 4 /checksum/MD5/2 1123s ok 5 /checksum/MD5/3 1123s ok 6 /checksum/MD5/4 1123s ok 7 /checksum/MD5/5 1123s ok 8 /checksum/MD5/6 1123s ok 9 /checksum/MD5/7 1123s ok 10 /checksum/MD5/8 1123s ok 11 /checksum/MD5/9 1123s ok 12 /checksum/MD5/10 1123s ok 13 /checksum/MD5/11 1123s ok 14 /checksum/MD5/12 1123s ok 15 /checksum/MD5/13 1123s ok 16 /checksum/MD5/14 1123s ok 17 /checksum/MD5/15 1123s ok 18 /checksum/MD5/16 1123s ok 19 /checksum/MD5/17 1123s ok 20 /checksum/MD5/18 1123s ok 21 /checksum/MD5/19 1123s ok 22 /checksum/MD5/20 1123s ok 23 /checksum/MD5/21 1123s ok 24 /checksum/MD5/22 1123s ok 25 /checksum/MD5/23 1123s ok 26 /checksum/MD5/24 1123s ok 27 /checksum/MD5/25 1123s ok 28 /checksum/MD5/26 1123s ok 29 /checksum/MD5/27 1123s ok 30 /checksum/MD5/28 1123s ok 31 /checksum/MD5/29 1123s ok 32 /checksum/MD5/30 1123s ok 33 /checksum/MD5/31 1123s ok 34 /checksum/MD5/32 1123s ok 35 /checksum/MD5/33 1123s ok 36 /checksum/MD5/34 1123s ok 37 /checksum/MD5/35 1123s ok 38 /checksum/MD5/36 1123s ok 39 /checksum/MD5/37 1123s ok 40 /checksum/MD5/38 1123s ok 41 /checksum/MD5/39 1123s ok 42 /checksum/MD5/40 1123s ok 43 /checksum/MD5/41 1123s ok 44 /checksum/MD5/42 1123s ok 45 /checksum/MD5/43 1123s ok 46 /checksum/MD5/44 1123s ok 47 /checksum/MD5/45 1123s ok 48 /checksum/MD5/46 1123s ok 49 /checksum/MD5/47 1123s ok 50 /checksum/MD5/48 1123s ok 51 /checksum/MD5/49 1123s ok 52 /checksum/MD5/50 1123s ok 53 /checksum/MD5/51 1123s ok 54 /checksum/MD5/52 1123s ok 55 /checksum/MD5/53 1123s ok 56 /checksum/MD5/54 1123s ok 57 /checksum/MD5/55 1123s ok 58 /checksum/MD5/56 1123s ok 59 /checksum/MD5/57 1123s ok 60 /checksum/MD5/58 1123s ok 61 /checksum/MD5/59 1123s ok 62 /checksum/MD5/60 1123s ok 63 /checksum/MD5/61 1123s ok 64 /checksum/MD5/62 1123s ok 65 /checksum/MD5/63 1123s ok 66 /checksum/MD5/64 1123s ok 67 /checksum/MD5/65 1123s ok 68 /checksum/MD5/66 1123s ok 69 /checksum/MD5/67 1123s ok 70 /checksum/MD5/68 1123s ok 71 /checksum/MD5/69 1123s ok 72 /checksum/MD5/70 1123s ok 73 /checksum/MD5/71 1123s ok 74 /checksum/MD5/72 1123s ok 75 /checksum/MD5/73 1123s ok 76 /checksum/MD5/74 1123s ok 77 /checksum/MD5/75 1123s ok 78 /checksum/MD5/76 1123s ok 79 /checksum/MD5/77 1123s ok 80 /checksum/MD5/78 1123s ok 81 /checksum/MD5/79 1123s ok 82 /checksum/MD5/80 1123s ok 83 /checksum/MD5/81 1123s ok 84 /checksum/MD5/82 1123s ok 85 /checksum/MD5/83 1123s ok 86 /checksum/MD5/84 1123s ok 87 /checksum/MD5/85 1123s ok 88 /checksum/MD5/86 1123s ok 89 /checksum/MD5/87 1123s ok 90 /checksum/MD5/88 1123s ok 91 /checksum/MD5/89 1123s ok 92 /checksum/MD5/90 1123s ok 93 /checksum/MD5/91 1123s ok 94 /checksum/MD5/92 1123s ok 95 /checksum/MD5/93 1123s ok 96 /checksum/MD5/94 1123s ok 97 /checksum/MD5/95 1123s ok 98 /checksum/MD5/96 1123s ok 99 /checksum/MD5/97 1123s ok 100 /checksum/MD5/98 1123s ok 101 /checksum/MD5/99 1123s ok 102 /checksum/MD5/100 1123s ok 103 /checksum/MD5/101 1123s ok 104 /checksum/MD5/102 1123s ok 105 /checksum/MD5/103 1123s ok 106 /checksum/MD5/104 1123s ok 107 /checksum/MD5/105 1123s ok 108 /checksum/MD5/106 1123s ok 109 /checksum/MD5/107 1123s ok 110 /checksum/MD5/108 1123s ok 111 /checksum/MD5/109 1123s ok 112 /checksum/MD5/110 1123s ok 113 /checksum/MD5/111 1123s ok 114 /checksum/MD5/112 1123s ok 115 /checksum/MD5/113 1123s ok 116 /checksum/MD5/114 1123s ok 117 /checksum/MD5/115 1123s ok 118 /checksum/MD5/116 1123s ok 119 /checksum/MD5/117 1123s ok 120 /checksum/MD5/118 1123s ok 121 /checksum/MD5/119 1123s ok 122 /checksum/MD5/120 1123s ok 123 /checksum/MD5/121 1123s ok 124 /checksum/MD5/122 1123s ok 125 /checksum/MD5/123 1123s ok 126 /checksum/MD5/124 1123s ok 127 /checksum/MD5/125 1123s ok 128 /checksum/MD5/126 1123s ok 129 /checksum/MD5/127 1123s ok 130 /checksum/MD5/128 1123s ok 131 /checksum/MD5/129 1123s ok 132 /checksum/MD5/130 1123s ok 133 /checksum/MD5/131 1123s ok 134 /checksum/MD5/132 1123s ok 135 /checksum/MD5/133 1123s ok 136 /checksum/MD5/134 1123s ok 137 /checksum/MD5/135 1123s ok 138 /checksum/MD5/136 1123s ok 139 /checksum/MD5/137 1123s ok 140 /checksum/MD5/138 1123s ok 141 /checksum/MD5/139 1123s ok 142 /checksum/MD5/140 1123s ok 143 /checksum/MD5/141 1123s ok 144 /checksum/MD5/142 1123s ok 145 /checksum/MD5/143 1123s ok 146 /checksum/MD5/144 1123s ok 147 /checksum/MD5/145 1123s ok 148 /checksum/MD5/146 1123s ok 149 /checksum/MD5/147 1123s ok 150 /checksum/MD5/148 1123s ok 151 /checksum/MD5/149 1123s ok 152 /checksum/MD5/150 1123s ok 153 /checksum/MD5/151 1123s ok 154 /checksum/MD5/152 1123s ok 155 /checksum/MD5/153 1123s ok 156 /checksum/MD5/154 1123s ok 157 /checksum/MD5/155 1123s ok 158 /checksum/MD5/156 1123s ok 159 /checksum/MD5/157 1123s ok 160 /checksum/MD5/158 1123s ok 161 /checksum/MD5/159 1123s ok 162 /checksum/MD5/160 1123s ok 163 /checksum/MD5/161 1123s ok 164 /checksum/MD5/162 1123s ok 165 /checksum/MD5/163 1123s ok 166 /checksum/MD5/164 1123s ok 167 /checksum/MD5/165 1123s ok 168 /checksum/MD5/166 1123s ok 169 /checksum/MD5/167 1123s ok 170 /checksum/MD5/168 1123s ok 171 /checksum/MD5/169 1123s ok 172 /checksum/MD5/170 1123s ok 173 /checksum/MD5/171 1123s ok 174 /checksum/MD5/172 1123s ok 175 /checksum/MD5/173 1123s ok 176 /checksum/MD5/174 1123s ok 177 /checksum/MD5/175 1123s ok 178 /checksum/MD5/176 1123s ok 179 /checksum/MD5/177 1123s ok 180 /checksum/MD5/178 1123s ok 181 /checksum/MD5/179 1123s ok 182 /checksum/MD5/180 1123s ok 183 /checksum/MD5/181 1123s ok 184 /checksum/MD5/182 1123s ok 185 /checksum/MD5/183 1123s ok 186 /checksum/MD5/string 1123s ok 187 /checksum/MD5/bytes 1123s # Start of reset tests 1123s ok 188 /checksum/MD5/reset/0 1123s ok 189 /checksum/MD5/reset/1 1123s ok 190 /checksum/MD5/reset/2 1123s ok 191 /checksum/MD5/reset/3 1123s ok 192 /checksum/MD5/reset/4 1123s ok 193 /checksum/MD5/reset/5 1123s ok 194 /checksum/MD5/reset/6 1123s ok 195 /checksum/MD5/reset/7 1123s ok 196 /checksum/MD5/reset/8 1123s ok 197 /checksum/MD5/reset/9 1123s ok 198 /checksum/MD5/reset/10 1123s ok 199 /checksum/MD5/reset/11 1123s ok 200 /checksum/MD5/reset/12 1123s ok 201 /checksum/MD5/reset/13 1123s ok 202 /checksum/MD5/reset/14 1123s ok 203 /checksum/MD5/reset/15 1123s ok 204 /checksum/MD5/reset/16 1123s ok 205 /checksum/MD5/reset/17 1123s ok 206 /checksum/MD5/reset/18 1123s ok 207 /checksum/MD5/reset/19 1123s ok 208 /checksum/MD5/reset/20 1123s ok 209 /checksum/MD5/reset/21 1123s ok 210 /checksum/MD5/reset/22 1123s ok 211 /checksum/MD5/reset/23 1123s ok 212 /checksum/MD5/reset/24 1123s ok 213 /checksum/MD5/reset/25 1123s ok 214 /checksum/MD5/reset/26 1123s ok 215 /checksum/MD5/reset/27 1123s ok 216 /checksum/MD5/reset/28 1123s ok 217 /checksum/MD5/reset/29 1123s ok 218 /checksum/MD5/reset/30 1123s ok 219 /checksum/MD5/reset/31 1123s ok 220 /checksum/MD5/reset/32 1123s ok 221 /checksum/MD5/reset/33 1123s ok 222 /checksum/MD5/reset/34 1123s ok 223 /checksum/MD5/reset/35 1123s ok 224 /checksum/MD5/reset/36 1123s ok 225 /checksum/MD5/reset/37 1123s ok 226 /checksum/MD5/reset/38 1123s ok 227 /checksum/MD5/reset/39 1123s ok 228 /checksum/MD5/reset/40 1123s ok 229 /checksum/MD5/reset/41 1123s ok 230 /checksum/MD5/reset/42 1123s ok 231 /checksum/MD5/reset/43 1123s ok 232 /checksum/MD5/reset/44 1123s ok 233 /checksum/MD5/reset/45 1123s ok 234 /checksum/MD5/reset/46 1123s ok 235 /checksum/MD5/reset/47 1123s ok 236 /checksum/MD5/reset/48 1123s ok 237 /checksum/MD5/reset/49 1123s ok 238 /checksum/MD5/reset/50 1123s ok 239 /checksum/MD5/reset/51 1123s ok 240 /checksum/MD5/reset/52 1123s ok 241 /checksum/MD5/reset/53 1123s ok 242 /checksum/MD5/reset/54 1123s ok 243 /checksum/MD5/reset/55 1123s ok 244 /checksum/MD5/reset/56 1123s ok 245 /checksum/MD5/reset/57 1123s ok 246 /checksum/MD5/reset/58 1123s ok 247 /checksum/MD5/reset/59 1123s ok 248 /checksum/MD5/reset/60 1123s ok 249 /checksum/MD5/reset/61 1123s ok 250 /checksum/MD5/reset/62 1123s ok 251 /checksum/MD5/reset/63 1123s ok 252 /checksum/MD5/reset/64 1123s ok 253 /checksum/MD5/reset/65 1123s ok 254 /checksum/MD5/reset/66 1123s ok 255 /checksum/MD5/reset/67 1123s ok 256 /checksum/MD5/reset/68 1123s ok 257 /checksum/MD5/reset/69 1123s ok 258 /checksum/MD5/reset/70 1123s ok 259 /checksum/MD5/reset/71 1123s ok 260 /checksum/MD5/reset/72 1123s ok 261 /checksum/MD5/reset/73 1123s ok 262 /checksum/MD5/reset/74 1123s ok 263 /checksum/MD5/reset/75 1123s ok 264 /checksum/MD5/reset/76 1123s ok 265 /checksum/MD5/reset/77 1123s ok 266 /checksum/MD5/reset/78 1123s ok 267 /checksum/MD5/reset/79 1123s ok 268 /checksum/MD5/reset/80 1123s ok 269 /checksum/MD5/reset/81 1123s ok 270 /checksum/MD5/reset/82 1123s ok 271 /checksum/MD5/reset/83 1123s ok 272 /checksum/MD5/reset/84 1123s ok 273 /checksum/MD5/reset/85 1123s ok 274 /checksum/MD5/reset/86 1123s ok 275 /checksum/MD5/reset/87 1123s ok 276 /checksum/MD5/reset/88 1123s ok 277 /checksum/MD5/reset/89 1123s ok 278 /checksum/MD5/reset/90 1123s ok 279 /checksum/MD5/reset/91 1123s ok 280 /checksum/MD5/reset/92 1123s ok 281 /checksum/MD5/reset/93 1123s ok 282 /checksum/MD5/reset/94 1123s ok 283 /checksum/MD5/reset/95 1123s ok 284 /checksum/MD5/reset/96 1123s ok 285 /checksum/MD5/reset/97 1123s ok 286 /checksum/MD5/reset/98 1123s ok 287 /checksum/MD5/reset/99 1123s ok 288 /checksum/MD5/reset/100 1123s ok 289 /checksum/MD5/reset/101 1123s ok 290 /checksum/MD5/reset/102 1123s ok 291 /checksum/MD5/reset/103 1123s ok 292 /checksum/MD5/reset/104 1123s ok 293 /checksum/MD5/reset/105 1123s ok 294 /checksum/MD5/reset/106 1123s ok 295 /checksum/MD5/reset/107 1123s ok 296 /checksum/MD5/reset/108 1123s ok 297 /checksum/MD5/reset/109 1123s ok 298 /checksum/MD5/reset/110 1123s ok 299 /checksum/MD5/reset/111 1123s ok 300 /checksum/MD5/reset/112 1123s ok 301 /checksum/MD5/reset/113 1123s ok 302 /checksum/MD5/reset/114 1123s ok 303 /checksum/MD5/reset/115 1123s ok 304 /checksum/MD5/reset/116 1123s ok 305 /checksum/MD5/reset/117 1123s ok 306 /checksum/MD5/reset/118 1123s ok 307 /checksum/MD5/reset/119 1123s ok 308 /checksum/MD5/reset/120 1123s ok 309 /checksum/MD5/reset/121 1123s ok 310 /checksum/MD5/reset/122 1123s ok 311 /checksum/MD5/reset/123 1123s ok 312 /checksum/MD5/reset/124 1123s ok 313 /checksum/MD5/reset/125 1123s ok 314 /checksum/MD5/reset/126 1123s ok 315 /checksum/MD5/reset/127 1123s ok 316 /checksum/MD5/reset/128 1123s ok 317 /checksum/MD5/reset/129 1123s ok 318 /checksum/MD5/reset/130 1123s ok 319 /checksum/MD5/reset/131 1123s ok 320 /checksum/MD5/reset/132 1123s ok 321 /checksum/MD5/reset/133 1123s ok 322 /checksum/MD5/reset/134 1123s ok 323 /checksum/MD5/reset/135 1123s ok 324 /checksum/MD5/reset/136 1123s ok 325 /checksum/MD5/reset/137 1123s ok 326 /checksum/MD5/reset/138 1123s ok 327 /checksum/MD5/reset/139 1123s ok 328 /checksum/MD5/reset/140 1123s ok 329 /checksum/MD5/reset/141 1123s ok 330 /checksum/MD5/reset/142 1123s ok 331 /checksum/MD5/reset/143 1123s ok 332 /checksum/MD5/reset/144 1123s ok 333 /checksum/MD5/reset/145 1123s ok 334 /checksum/MD5/reset/146 1123s ok 335 /checksum/MD5/reset/147 1123s ok 336 /checksum/MD5/reset/148 1123s ok 337 /checksum/MD5/reset/149 1123s ok 338 /checksum/MD5/reset/150 1123s ok 339 /checksum/MD5/reset/151 1123s ok 340 /checksum/MD5/reset/152 1123s ok 341 /checksum/MD5/reset/153 1123s ok 342 /checksum/MD5/reset/154 1123s ok 343 /checksum/MD5/reset/155 1123s ok 344 /checksum/MD5/reset/156 1123s ok 345 /checksum/MD5/reset/157 1123s ok 346 /checksum/MD5/reset/158 1123s ok 347 /checksum/MD5/reset/159 1123s ok 348 /checksum/MD5/reset/160 1123s ok 349 /checksum/MD5/reset/161 1123s ok 350 /checksum/MD5/reset/162 1123s ok 351 /checksum/MD5/reset/163 1123s ok 352 /checksum/MD5/reset/164 1123s ok 353 /checksum/MD5/reset/165 1123s ok 354 /checksum/MD5/reset/166 1123s ok 355 /checksum/MD5/reset/167 1123s ok 356 /checksum/MD5/reset/168 1123s ok 357 /checksum/MD5/reset/169 1123s ok 358 /checksum/MD5/reset/170 1123s ok 359 /checksum/MD5/reset/171 1123s ok 360 /checksum/MD5/reset/172 1123s ok 361 /checksum/MD5/reset/173 1123s ok 362 /checksum/MD5/reset/174 1123s ok 363 /checksum/MD5/reset/175 1123s ok 364 /checksum/MD5/reset/176 1123s ok 365 /checksum/MD5/reset/177 1123s ok 366 /checksum/MD5/reset/178 1123s ok 367 /checksum/MD5/reset/179 1123s ok 368 /checksum/MD5/reset/180 1123s ok 369 /checksum/MD5/reset/181 1123s ok 370 /checksum/MD5/reset/182 1123s ok 371 /checksum/MD5/reset/183 1123s # End of reset tests 1123s # End of MD5 tests 1123s # Start of SHA1 tests 1123s ok 372 /checksum/SHA1/0 1123s ok 373 /checksum/SHA1/1 1123s ok 374 /checksum/SHA1/2 1123s ok 375 /checksum/SHA1/3 1123s ok 376 /checksum/SHA1/4 1123s ok 377 /checksum/SHA1/5 1123s ok 378 /checksum/SHA1/6 1123s ok 379 /checksum/SHA1/7 1123s ok 380 /checksum/SHA1/8 1123s ok 381 /checksum/SHA1/9 1123s ok 382 /checksum/SHA1/10 1123s ok 383 /checksum/SHA1/11 1123s ok 384 /checksum/SHA1/12 1123s ok 385 /checksum/SHA1/13 1123s ok 386 /checksum/SHA1/14 1123s ok 387 /checksum/SHA1/15 1123s ok 388 /checksum/SHA1/16 1123s ok 389 /checksum/SHA1/17 1123s ok 390 /checksum/SHA1/18 1123s ok 391 /checksum/SHA1/19 1123s ok 392 /checksum/SHA1/20 1123s ok 393 /checksum/SHA1/21 1123s ok 394 /checksum/SHA1/22 1123s ok 395 /checksum/SHA1/23 1123s ok 396 /checksum/SHA1/24 1123s ok 397 /checksum/SHA1/25 1123s ok 398 /checksum/SHA1/26 1123s ok 399 /checksum/SHA1/27 1123s ok 400 /checksum/SHA1/28 1123s ok 401 /checksum/SHA1/29 1123s ok 402 /checksum/SHA1/30 1123s ok 403 /checksum/SHA1/31 1123s ok 404 /checksum/SHA1/32 1123s ok 405 /checksum/SHA1/33 1123s ok 406 /checksum/SHA1/34 1123s ok 407 /checksum/SHA1/35 1123s ok 408 /checksum/SHA1/36 1123s ok 409 /checksum/SHA1/37 1123s ok 410 /checksum/SHA1/38 1123s ok 411 /checksum/SHA1/39 1123s ok 412 /checksum/SHA1/40 1123s ok 413 /checksum/SHA1/41 1123s ok 414 /checksum/SHA1/42 1123s ok 415 /checksum/SHA1/43 1123s ok 416 /checksum/SHA1/44 1123s ok 417 /checksum/SHA1/45 1123s ok 418 /checksum/SHA1/46 1123s ok 419 /checksum/SHA1/47 1123s ok 420 /checksum/SHA1/48 1123s ok 421 /checksum/SHA1/49 1123s ok 422 /checksum/SHA1/50 1123s ok 423 /checksum/SHA1/51 1123s ok 424 /checksum/SHA1/52 1123s ok 425 /checksum/SHA1/53 1123s ok 426 /checksum/SHA1/54 1123s ok 427 /checksum/SHA1/55 1123s ok 428 /checksum/SHA1/56 1123s ok 429 /checksum/SHA1/57 1123s ok 430 /checksum/SHA1/58 1123s ok 431 /checksum/SHA1/59 1123s ok 432 /checksum/SHA1/60 1123s ok 433 /checksum/SHA1/61 1123s ok 434 /checksum/SHA1/62 1123s ok 435 /checksum/SHA1/63 1123s ok 436 /checksum/SHA1/64 1123s ok 437 /checksum/SHA1/65 1123s ok 438 /checksum/SHA1/66 1123s ok 439 /checksum/SHA1/67 1123s ok 440 /checksum/SHA1/68 1123s ok 441 /checksum/SHA1/69 1123s ok 442 /checksum/SHA1/70 1123s ok 443 /checksum/SHA1/71 1123s ok 444 /checksum/SHA1/72 1123s ok 445 /checksum/SHA1/73 1123s ok 446 /checksum/SHA1/74 1123s ok 447 /checksum/SHA1/75 1123s ok 448 /checksum/SHA1/76 1123s ok 449 /checksum/SHA1/77 1123s ok 450 /checksum/SHA1/78 1123s ok 451 /checksum/SHA1/79 1123s ok 452 /checksum/SHA1/80 1123s ok 453 /checksum/SHA1/81 1123s ok 454 /checksum/SHA1/82 1123s ok 455 /checksum/SHA1/83 1123s ok 456 /checksum/SHA1/84 1123s ok 457 /checksum/SHA1/85 1123s ok 458 /checksum/SHA1/86 1123s ok 459 /checksum/SHA1/87 1123s ok 460 /checksum/SHA1/88 1123s ok 461 /checksum/SHA1/89 1123s ok 462 /checksum/SHA1/90 1123s ok 463 /checksum/SHA1/91 1123s ok 464 /checksum/SHA1/92 1123s ok 465 /checksum/SHA1/93 1123s ok 466 /checksum/SHA1/94 1123s ok 467 /checksum/SHA1/95 1123s ok 468 /checksum/SHA1/96 1123s ok 469 /checksum/SHA1/97 1123s ok 470 /checksum/SHA1/98 1123s ok 471 /checksum/SHA1/99 1123s ok 472 /checksum/SHA1/100 1123s ok 473 /checksum/SHA1/101 1123s ok 474 /checksum/SHA1/102 1123s ok 475 /checksum/SHA1/103 1123s ok 476 /checksum/SHA1/104 1123s ok 477 /checksum/SHA1/105 1123s ok 478 /checksum/SHA1/106 1123s ok 479 /checksum/SHA1/107 1123s ok 480 /checksum/SHA1/108 1123s ok 481 /checksum/SHA1/109 1123s ok 482 /checksum/SHA1/110 1123s ok 483 /checksum/SHA1/111 1123s ok 484 /checksum/SHA1/112 1123s ok 485 /checksum/SHA1/113 1123s ok 486 /checksum/SHA1/114 1123s ok 487 /checksum/SHA1/115 1123s ok 488 /checksum/SHA1/116 1123s ok 489 /checksum/SHA1/117 1123s ok 490 /checksum/SHA1/118 1123s ok 491 /checksum/SHA1/119 1123s ok 492 /checksum/SHA1/120 1123s ok 493 /checksum/SHA1/121 1123s ok 494 /checksum/SHA1/122 1123s ok 495 /checksum/SHA1/123 1123s ok 496 /checksum/SHA1/124 1123s ok 497 /checksum/SHA1/125 1123s ok 498 /checksum/SHA1/126 1123s ok 499 /checksum/SHA1/127 1123s ok 500 /checksum/SHA1/128 1123s ok 501 /checksum/SHA1/129 1123s ok 502 /checksum/SHA1/130 1123s ok 503 /checksum/SHA1/131 1123s ok 504 /checksum/SHA1/132 1123s ok 505 /checksum/SHA1/133 1123s ok 506 /checksum/SHA1/134 1123s ok 507 /checksum/SHA1/135 1123s ok 508 /checksum/SHA1/136 1123s ok 509 /checksum/SHA1/137 1123s ok 510 /checksum/SHA1/138 1123s ok 511 /checksum/SHA1/139 1123s ok 512 /checksum/SHA1/140 1123s ok 513 /checksum/SHA1/141 1123s ok 514 /checksum/SHA1/142 1123s ok 515 /checksum/SHA1/143 1123s ok 516 /checksum/SHA1/144 1123s ok 517 /checksum/SHA1/145 1123s ok 518 /checksum/SHA1/146 1123s ok 519 /checksum/SHA1/147 1123s ok 520 /checksum/SHA1/148 1123s ok 521 /checksum/SHA1/149 1123s ok 522 /checksum/SHA1/150 1123s ok 523 /checksum/SHA1/151 1123s ok 524 /checksum/SHA1/152 1123s ok 525 /checksum/SHA1/153 1123s ok 526 /checksum/SHA1/154 1123s ok 527 /checksum/SHA1/155 1123s ok 528 /checksum/SHA1/156 1123s ok 529 /checksum/SHA1/157 1123s ok 530 /checksum/SHA1/158 1123s ok 531 /checksum/SHA1/159 1123s ok 532 /checksum/SHA1/160 1123s ok 533 /checksum/SHA1/161 1123s ok 534 /checksum/SHA1/162 1123s ok 535 /checksum/SHA1/163 1123s ok 536 /checksum/SHA1/164 1123s ok 537 /checksum/SHA1/165 1123s ok 538 /checksum/SHA1/166 1123s ok 539 /checksum/SHA1/167 1123s ok 540 /checksum/SHA1/168 1123s ok 541 /checksum/SHA1/169 1123s ok 542 /checksum/SHA1/170 1123s ok 543 /checksum/SHA1/171 1123s ok 544 /checksum/SHA1/172 1123s ok 545 /checksum/SHA1/173 1123s ok 546 /checksum/SHA1/174 1123s ok 547 /checksum/SHA1/175 1123s ok 548 /checksum/SHA1/176 1123s ok 549 /checksum/SHA1/177 1123s ok 550 /checksum/SHA1/178 1123s ok 551 /checksum/SHA1/179 1123s ok 552 /checksum/SHA1/180 1123s ok 553 /checksum/SHA1/181 1123s ok 554 /checksum/SHA1/182 1123s ok 555 /checksum/SHA1/183 1123s ok 556 /checksum/SHA1/string 1123s ok 557 /checksum/SHA1/bytes 1123s # Start of reset tests 1123s ok 558 /checksum/SHA1/reset/0 1123s ok 559 /checksum/SHA1/reset/1 1123s ok 560 /checksum/SHA1/reset/2 1123s ok 561 /checksum/SHA1/reset/3 1123s ok 562 /checksum/SHA1/reset/4 1123s ok 563 /checksum/SHA1/reset/5 1123s ok 564 /checksum/SHA1/reset/6 1123s ok 565 /checksum/SHA1/reset/7 1123s ok 566 /checksum/SHA1/reset/8 1123s ok 567 /checksum/SHA1/reset/9 1123s ok 568 /checksum/SHA1/reset/10 1123s ok 569 /checksum/SHA1/reset/11 1123s ok 570 /checksum/SHA1/reset/12 1123s ok 571 /checksum/SHA1/reset/13 1123s ok 572 /checksum/SHA1/reset/14 1123s ok 573 /checksum/SHA1/reset/15 1123s ok 574 /checksum/SHA1/reset/16 1123s ok 575 /checksum/SHA1/reset/17 1123s ok 576 /checksum/SHA1/reset/18 1123s ok 577 /checksum/SHA1/reset/19 1123s ok 578 /checksum/SHA1/reset/20 1123s ok 579 /checksum/SHA1/reset/21 1123s ok 580 /checksum/SHA1/reset/22 1123s ok 581 /checksum/SHA1/reset/23 1123s ok 582 /checksum/SHA1/reset/24 1123s ok 583 /checksum/SHA1/reset/25 1123s ok 584 /checksum/SHA1/reset/26 1123s ok 585 /checksum/SHA1/reset/27 1123s ok 586 /checksum/SHA1/reset/28 1123s ok 587 /checksum/SHA1/reset/29 1123s ok 588 /checksum/SHA1/reset/30 1123s ok 589 /checksum/SHA1/reset/31 1123s ok 590 /checksum/SHA1/reset/32 1123s ok 591 /checksum/SHA1/reset/33 1123s ok 592 /checksum/SHA1/reset/34 1123s ok 593 /checksum/SHA1/reset/35 1123s ok 594 /checksum/SHA1/reset/36 1123s ok 595 /checksum/SHA1/reset/37 1123s ok 596 /checksum/SHA1/reset/38 1123s ok 597 /checksum/SHA1/reset/39 1123s ok 598 /checksum/SHA1/reset/40 1123s ok 599 /checksum/SHA1/reset/41 1123s ok 600 /checksum/SHA1/reset/42 1123s ok 601 /checksum/SHA1/reset/43 1123s ok 602 /checksum/SHA1/reset/44 1123s ok 603 /checksum/SHA1/reset/45 1123s ok 604 /checksum/SHA1/reset/46 1123s ok 605 /checksum/SHA1/reset/47 1123s ok 606 /checksum/SHA1/reset/48 1123s ok 607 /checksum/SHA1/reset/49 1123s ok 608 /checksum/SHA1/reset/50 1123s ok 609 /checksum/SHA1/reset/51 1123s ok 610 /checksum/SHA1/reset/52 1123s ok 611 /checksum/SHA1/reset/53 1123s ok 612 /checksum/SHA1/reset/54 1123s ok 613 /checksum/SHA1/reset/55 1123s ok 614 /checksum/SHA1/reset/56 1123s ok 615 /checksum/SHA1/reset/57 1123s ok 616 /checksum/SHA1/reset/58 1123s ok 617 /checksum/SHA1/reset/59 1123s ok 618 /checksum/SHA1/reset/60 1123s ok 619 /checksum/SHA1/reset/61 1123s ok 620 /checksum/SHA1/reset/62 1123s ok 621 /checksum/SHA1/reset/63 1123s ok 622 /checksum/SHA1/reset/64 1123s ok 623 /checksum/SHA1/reset/65 1123s ok 624 /checksum/SHA1/reset/66 1123s ok 625 /checksum/SHA1/reset/67 1123s ok 626 /checksum/SHA1/reset/68 1123s ok 627 /checksum/SHA1/reset/69 1123s ok 628 /checksum/SHA1/reset/70 1123s ok 629 /checksum/SHA1/reset/71 1123s ok 630 /checksum/SHA1/reset/72 1123s ok 631 /checksum/SHA1/reset/73 1123s ok 632 /checksum/SHA1/reset/74 1123s ok 633 /checksum/SHA1/reset/75 1123s ok 634 /checksum/SHA1/reset/76 1123s ok 635 /checksum/SHA1/reset/77 1123s ok 636 /checksum/SHA1/reset/78 1123s ok 637 /checksum/SHA1/reset/79 1123s ok 638 /checksum/SHA1/reset/80 1123s ok 639 /checksum/SHA1/reset/81 1123s ok 640 /checksum/SHA1/reset/82 1123s ok 641 /checksum/SHA1/reset/83 1123s ok 642 /checksum/SHA1/reset/84 1123s ok 643 /checksum/SHA1/reset/85 1123s ok 644 /checksum/SHA1/reset/86 1123s ok 645 /checksum/SHA1/reset/87 1123s ok 646 /checksum/SHA1/reset/88 1123s ok 647 /checksum/SHA1/reset/89 1123s ok 648 /checksum/SHA1/reset/90 1123s ok 649 /checksum/SHA1/reset/91 1123s ok 650 /checksum/SHA1/reset/92 1123s ok 651 /checksum/SHA1/reset/93 1123s ok 652 /checksum/SHA1/reset/94 1123s ok 653 /checksum/SHA1/reset/95 1123s ok 654 /checksum/SHA1/reset/96 1123s ok 655 /checksum/SHA1/reset/97 1123s ok 656 /checksum/SHA1/reset/98 1123s ok 657 /checksum/SHA1/reset/99 1123s ok 658 /checksum/SHA1/reset/100 1123s ok 659 /checksum/SHA1/reset/101 1123s ok 660 /checksum/SHA1/reset/102 1123s ok 661 /checksum/SHA1/reset/103 1123s ok 662 /checksum/SHA1/reset/104 1123s ok 663 /checksum/SHA1/reset/105 1123s ok 664 /checksum/SHA1/reset/106 1123s ok 665 /checksum/SHA1/reset/107 1123s ok 666 /checksum/SHA1/reset/108 1123s ok 667 /checksum/SHA1/reset/109 1123s ok 668 /checksum/SHA1/reset/110 1123s ok 669 /checksum/SHA1/reset/111 1123s ok 670 /checksum/SHA1/reset/112 1123s ok 671 /checksum/SHA1/reset/113 1123s ok 672 /checksum/SHA1/reset/114 1123s ok 673 /checksum/SHA1/reset/115 1123s ok 674 /checksum/SHA1/reset/116 1123s ok 675 /checksum/SHA1/reset/117 1123s ok 676 /checksum/SHA1/reset/118 1123s ok 677 /checksum/SHA1/reset/119 1123s ok 678 /checksum/SHA1/reset/120 1123s ok 679 /checksum/SHA1/reset/121 1123s ok 680 /checksum/SHA1/reset/122 1123s ok 681 /checksum/SHA1/reset/123 1123s ok 682 /checksum/SHA1/reset/124 1123s ok 683 /checksum/SHA1/reset/125 1123s ok 684 /checksum/SHA1/reset/126 1123s ok 685 /checksum/SHA1/reset/127 1123s ok 686 /checksum/SHA1/reset/128 1123s ok 687 /checksum/SHA1/reset/129 1123s ok 688 /checksum/SHA1/reset/130 1123s ok 689 /checksum/SHA1/reset/131 1123s ok 690 /checksum/SHA1/reset/132 1123s ok 691 /checksum/SHA1/reset/133 1123s ok 692 /checksum/SHA1/reset/134 1123s ok 693 /checksum/SHA1/reset/135 1123s ok 694 /checksum/SHA1/reset/136 1123s ok 695 /checksum/SHA1/reset/137 1123s ok 696 /checksum/SHA1/reset/138 1123s ok 697 /checksum/SHA1/reset/139 1123s ok 698 /checksum/SHA1/reset/140 1123s ok 699 /checksum/SHA1/reset/141 1123s ok 700 /checksum/SHA1/reset/142 1123s ok 701 /checksum/SHA1/reset/143 1123s ok 702 /checksum/SHA1/reset/144 1123s ok 703 /checksum/SHA1/reset/145 1123s ok 704 /checksum/SHA1/reset/146 1123s ok 705 /checksum/SHA1/reset/147 1123s ok 706 /checksum/SHA1/reset/148 1123s ok 707 /checksum/SHA1/reset/149 1123s ok 708 /checksum/SHA1/reset/150 1123s ok 709 /checksum/SHA1/reset/151 1123s ok 710 /checksum/SHA1/reset/152 1123s ok 711 /checksum/SHA1/reset/153 1123s ok 712 /checksum/SHA1/reset/154 1123s ok 713 /checksum/SHA1/reset/155 1123s ok 714 /checksum/SHA1/reset/156 1123s ok 715 /checksum/SHA1/reset/157 1123s ok 716 /checksum/SHA1/reset/158 1123s ok 717 /checksum/SHA1/reset/159 1123s ok 718 /checksum/SHA1/reset/160 1123s ok 719 /checksum/SHA1/reset/161 1123s ok 720 /checksum/SHA1/reset/162 1123s ok 721 /checksum/SHA1/reset/163 1123s ok 722 /checksum/SHA1/reset/164 1123s ok 723 /checksum/SHA1/reset/165 1123s ok 724 /checksum/SHA1/reset/166 1123s ok 725 /checksum/SHA1/reset/167 1123s ok 726 /checksum/SHA1/reset/168 1123s ok 727 /checksum/SHA1/reset/169 1123s ok 728 /checksum/SHA1/reset/170 1123s ok 729 /checksum/SHA1/reset/171 1123s ok 730 /checksum/SHA1/reset/172 1123s ok 731 /checksum/SHA1/reset/173 1123s ok 732 /checksum/SHA1/reset/174 1123s ok 733 /checksum/SHA1/reset/175 1123s ok 734 /checksum/SHA1/reset/176 1123s ok 735 /checksum/SHA1/reset/177 1123s ok 736 /checksum/SHA1/reset/178 1123s ok 737 /checksum/SHA1/reset/179 1123s ok 738 /checksum/SHA1/reset/180 1123s ok 739 /checksum/SHA1/reset/181 1123s ok 740 /checksum/SHA1/reset/182 1123s ok 741 /checksum/SHA1/reset/183 1123s # End of reset tests 1123s # End of SHA1 tests 1123s # Start of SHA256 tests 1123s ok 742 /checksum/SHA256/0 1123s ok 743 /checksum/SHA256/1 1123s ok 744 /checksum/SHA256/2 1123s ok 745 /checksum/SHA256/3 1123s ok 746 /checksum/SHA256/4 1123s ok 747 /checksum/SHA256/5 1123s ok 748 /checksum/SHA256/6 1123s ok 749 /checksum/SHA256/7 1123s ok 750 /checksum/SHA256/8 1123s ok 751 /checksum/SHA256/9 1123s ok 752 /checksum/SHA256/10 1123s ok 753 /checksum/SHA256/11 1123s ok 754 /checksum/SHA256/12 1123s ok 755 /checksum/SHA256/13 1123s ok 756 /checksum/SHA256/14 1123s ok 757 /checksum/SHA256/15 1123s ok 758 /checksum/SHA256/16 1123s ok 759 /checksum/SHA256/17 1123s ok 760 /checksum/SHA256/18 1123s ok 761 /checksum/SHA256/19 1123s ok 762 /checksum/SHA256/20 1123s ok 763 /checksum/SHA256/21 1123s ok 764 /checksum/SHA256/22 1123s ok 765 /checksum/SHA256/23 1123s ok 766 /checksum/SHA256/24 1123s ok 767 /checksum/SHA256/25 1123s ok 768 /checksum/SHA256/26 1123s ok 769 /checksum/SHA256/27 1123s ok 770 /checksum/SHA256/28 1123s ok 771 /checksum/SHA256/29 1123s ok 772 /checksum/SHA256/30 1123s ok 773 /checksum/SHA256/31 1123s ok 774 /checksum/SHA256/32 1123s ok 775 /checksum/SHA256/33 1123s ok 776 /checksum/SHA256/34 1123s ok 777 /checksum/SHA256/35 1123s ok 778 /checksum/SHA256/36 1123s ok 779 /checksum/SHA256/37 1123s ok 780 /checksum/SHA256/38 1123s ok 781 /checksum/SHA256/39 1123s ok 782 /checksum/SHA256/40 1123s ok 783 /checksum/SHA256/41 1123s ok 784 /checksum/SHA256/42 1123s ok 785 /checksum/SHA256/43 1123s ok 786 /checksum/SHA256/44 1123s ok 787 /checksum/SHA256/45 1123s ok 788 /checksum/SHA256/46 1123s ok 789 /checksum/SHA256/47 1123s ok 790 /checksum/SHA256/48 1123s ok 791 /checksum/SHA256/49 1123s ok 792 /checksum/SHA256/50 1123s ok 793 /checksum/SHA256/51 1123s ok 794 /checksum/SHA256/52 1123s ok 795 /checksum/SHA256/53 1123s ok 796 /checksum/SHA256/54 1123s ok 797 /checksum/SHA256/55 1123s ok 798 /checksum/SHA256/56 1123s ok 799 /checksum/SHA256/57 1123s ok 800 /checksum/SHA256/58 1123s ok 801 /checksum/SHA256/59 1123s ok 802 /checksum/SHA256/60 1123s ok 803 /checksum/SHA256/61 1123s ok 804 /checksum/SHA256/62 1123s ok 805 /checksum/SHA256/63 1123s ok 806 /checksum/SHA256/64 1123s ok 807 /checksum/SHA256/65 1123s ok 808 /checksum/SHA256/66 1123s ok 809 /checksum/SHA256/67 1123s ok 810 /checksum/SHA256/68 1123s ok 811 /checksum/SHA256/69 1123s ok 812 /checksum/SHA256/70 1123s ok 813 /checksum/SHA256/71 1123s ok 814 /checksum/SHA256/72 1123s ok 815 /checksum/SHA256/73 1123s ok 816 /checksum/SHA256/74 1123s ok 817 /checksum/SHA256/75 1123s ok 818 /checksum/SHA256/76 1123s ok 819 /checksum/SHA256/77 1123s ok 820 /checksum/SHA256/78 1123s ok 821 /checksum/SHA256/79 1123s ok 822 /checksum/SHA256/80 1123s ok 823 /checksum/SHA256/81 1123s ok 824 /checksum/SHA256/82 1123s ok 825 /checksum/SHA256/83 1123s ok 826 /checksum/SHA256/84 1123s ok 827 /checksum/SHA256/85 1123s ok 828 /checksum/SHA256/86 1123s ok 829 /checksum/SHA256/87 1123s ok 830 /checksum/SHA256/88 1123s ok 831 /checksum/SHA256/89 1123s ok 832 /checksum/SHA256/90 1123s ok 833 /checksum/SHA256/91 1123s ok 834 /checksum/SHA256/92 1123s ok 835 /checksum/SHA256/93 1123s ok 836 /checksum/SHA256/94 1123s ok 837 /checksum/SHA256/95 1123s ok 838 /checksum/SHA256/96 1123s ok 839 /checksum/SHA256/97 1123s ok 840 /checksum/SHA256/98 1123s ok 841 /checksum/SHA256/99 1123s ok 842 /checksum/SHA256/100 1123s ok 843 /checksum/SHA256/101 1123s ok 844 /checksum/SHA256/102 1123s ok 845 /checksum/SHA256/103 1123s ok 846 /checksum/SHA256/104 1123s ok 847 /checksum/SHA256/105 1123s ok 848 /checksum/SHA256/106 1123s ok 849 /checksum/SHA256/107 1123s ok 850 /checksum/SHA256/108 1123s ok 851 /checksum/SHA256/109 1123s ok 852 /checksum/SHA256/110 1123s ok 853 /checksum/SHA256/111 1123s ok 854 /checksum/SHA256/112 1123s ok 855 /checksum/SHA256/113 1123s ok 856 /checksum/SHA256/114 1123s ok 857 /checksum/SHA256/115 1123s ok 858 /checksum/SHA256/116 1123s ok 859 /checksum/SHA256/117 1123s ok 860 /checksum/SHA256/118 1123s ok 861 /checksum/SHA256/119 1123s ok 862 /checksum/SHA256/120 1123s ok 863 /checksum/SHA256/121 1123s ok 864 /checksum/SHA256/122 1123s ok 865 /checksum/SHA256/123 1123s ok 866 /checksum/SHA256/124 1123s ok 867 /checksum/SHA256/125 1123s ok 868 /checksum/SHA256/126 1123s ok 869 /checksum/SHA256/127 1123s ok 870 /checksum/SHA256/128 1123s ok 871 /checksum/SHA256/129 1123s ok 872 /checksum/SHA256/130 1123s ok 873 /checksum/SHA256/131 1123s ok 874 /checksum/SHA256/132 1123s ok 875 /checksum/SHA256/133 1123s ok 876 /checksum/SHA256/134 1123s ok 877 /checksum/SHA256/135 1123s ok 878 /checksum/SHA256/136 1123s ok 879 /checksum/SHA256/137 1123s ok 880 /checksum/SHA256/138 1123s ok 881 /checksum/SHA256/139 1123s ok 882 /checksum/SHA256/140 1123s ok 883 /checksum/SHA256/141 1123s ok 884 /checksum/SHA256/142 1123s ok 885 /checksum/SHA256/143 1123s ok 886 /checksum/SHA256/144 1123s ok 887 /checksum/SHA256/145 1123s ok 888 /checksum/SHA256/146 1123s ok 889 /checksum/SHA256/147 1123s ok 890 /checksum/SHA256/148 1123s ok 891 /checksum/SHA256/149 1123s ok 892 /checksum/SHA256/150 1123s ok 893 /checksum/SHA256/151 1123s ok 894 /checksum/SHA256/152 1123s ok 895 /checksum/SHA256/153 1123s ok 896 /checksum/SHA256/154 1123s ok 897 /checksum/SHA256/155 1123s ok 898 /checksum/SHA256/156 1123s ok 899 /checksum/SHA256/157 1123s ok 900 /checksum/SHA256/158 1123s ok 901 /checksum/SHA256/159 1123s ok 902 /checksum/SHA256/160 1123s ok 903 /checksum/SHA256/161 1123s ok 904 /checksum/SHA256/162 1123s ok 905 /checksum/SHA256/163 1123s ok 906 /checksum/SHA256/164 1123s ok 907 /checksum/SHA256/165 1123s ok 908 /checksum/SHA256/166 1123s ok 909 /checksum/SHA256/167 1123s ok 910 /checksum/SHA256/168 1123s ok 911 /checksum/SHA256/169 1123s ok 912 /checksum/SHA256/170 1123s ok 913 /checksum/SHA256/171 1123s ok 914 /checksum/SHA256/172 1123s ok 915 /checksum/SHA256/173 1123s ok 916 /checksum/SHA256/174 1123s ok 917 /checksum/SHA256/175 1123s ok 918 /checksum/SHA256/176 1123s ok 919 /checksum/SHA256/177 1123s ok 920 /checksum/SHA256/178 1123s ok 921 /checksum/SHA256/179 1123s ok 922 /checksum/SHA256/180 1123s ok 923 /checksum/SHA256/181 1123s ok 924 /checksum/SHA256/182 1123s ok 925 /checksum/SHA256/183 1123s ok 926 /checksum/SHA256/string 1123s ok 927 /checksum/SHA256/bytes 1123s # Start of reset tests 1123s ok 928 /checksum/SHA256/reset/0 1123s ok 929 /checksum/SHA256/reset/1 1123s ok 930 /checksum/SHA256/reset/2 1123s ok 931 /checksum/SHA256/reset/3 1123s ok 932 /checksum/SHA256/reset/4 1123s ok 933 /checksum/SHA256/reset/5 1123s ok 934 /checksum/SHA256/reset/6 1123s ok 935 /checksum/SHA256/reset/7 1123s ok 936 /checksum/SHA256/reset/8 1123s ok 937 /checksum/SHA256/reset/9 1123s ok 938 /checksum/SHA256/reset/10 1123s # Executing: glib/checksum.test 1123s ok 939 /checksum/SHA256/reset/11 1123s ok 940 /checksum/SHA256/reset/12 1123s ok 941 /checksum/SHA256/reset/13 1123s ok 942 /checksum/SHA256/reset/14 1123s ok 943 /checksum/SHA256/reset/15 1123s ok 944 /checksum/SHA256/reset/16 1123s ok 945 /checksum/SHA256/reset/17 1123s ok 946 /checksum/SHA256/reset/18 1123s ok 947 /checksum/SHA256/reset/19 1123s ok 948 /checksum/SHA256/reset/20 1123s ok 949 /checksum/SHA256/reset/21 1123s ok 950 /checksum/SHA256/reset/22 1123s ok 951 /checksum/SHA256/reset/23 1123s ok 952 /checksum/SHA256/reset/24 1123s ok 953 /checksum/SHA256/reset/25 1123s ok 954 /checksum/SHA256/reset/26 1123s ok 955 /checksum/SHA256/reset/27 1123s ok 956 /checksum/SHA256/reset/28 1123s ok 957 /checksum/SHA256/reset/29 1123s ok 958 /checksum/SHA256/reset/30 1123s ok 959 /checksum/SHA256/reset/31 1123s ok 960 /checksum/SHA256/reset/32 1123s ok 961 /checksum/SHA256/reset/33 1123s ok 962 /checksum/SHA256/reset/34 1123s ok 963 /checksum/SHA256/reset/35 1123s ok 964 /checksum/SHA256/reset/36 1123s ok 965 /checksum/SHA256/reset/37 1123s ok 966 /checksum/SHA256/reset/38 1123s ok 967 /checksum/SHA256/reset/39 1123s ok 968 /checksum/SHA256/reset/40 1123s ok 969 /checksum/SHA256/reset/41 1123s ok 970 /checksum/SHA256/reset/42 1123s ok 971 /checksum/SHA256/reset/43 1123s ok 972 /checksum/SHA256/reset/44 1123s ok 973 /checksum/SHA256/reset/45 1123s ok 974 /checksum/SHA256/reset/46 1123s ok 975 /checksum/SHA256/reset/47 1123s ok 976 /checksum/SHA256/reset/48 1123s ok 977 /checksum/SHA256/reset/49 1123s ok 978 /checksum/SHA256/reset/50 1123s ok 979 /checksum/SHA256/reset/51 1123s ok 980 /checksum/SHA256/reset/52 1123s ok 981 /checksum/SHA256/reset/53 1123s ok 982 /checksum/SHA256/reset/54 1123s ok 983 /checksum/SHA256/reset/55 1123s ok 984 /checksum/SHA256/reset/56 1123s ok 985 /checksum/SHA256/reset/57 1123s ok 986 /checksum/SHA256/reset/58 1123s ok 987 /checksum/SHA256/reset/59 1123s ok 988 /checksum/SHA256/reset/60 1123s ok 989 /checksum/SHA256/reset/61 1123s ok 990 /checksum/SHA256/reset/62 1123s ok 991 /checksum/SHA256/reset/63 1123s ok 992 /checksum/SHA256/reset/64 1123s ok 993 /checksum/SHA256/reset/65 1123s ok 994 /checksum/SHA256/reset/66 1123s ok 995 /checksum/SHA256/reset/67 1123s ok 996 /checksum/SHA256/reset/68 1123s ok 997 /checksum/SHA256/reset/69 1123s ok 998 /checksum/SHA256/reset/70 1123s ok 999 /checksum/SHA256/reset/71 1123s ok 1000 /checksum/SHA256/reset/72 1123s ok 1001 /checksum/SHA256/reset/73 1123s ok 1002 /checksum/SHA256/reset/74 1123s ok 1003 /checksum/SHA256/reset/75 1123s ok 1004 /checksum/SHA256/reset/76 1123s ok 1005 /checksum/SHA256/reset/77 1123s ok 1006 /checksum/SHA256/reset/78 1123s ok 1007 /checksum/SHA256/reset/79 1123s ok 1008 /checksum/SHA256/reset/80 1123s ok 1009 /checksum/SHA256/reset/81 1123s ok 1010 /checksum/SHA256/reset/82 1123s ok 1011 /checksum/SHA256/reset/83 1123s ok 1012 /checksum/SHA256/reset/84 1123s ok 1013 /checksum/SHA256/reset/85 1123s ok 1014 /checksum/SHA256/reset/86 1123s ok 1015 /checksum/SHA256/reset/87 1123s ok 1016 /checksum/SHA256/reset/88 1123s ok 1017 /checksum/SHA256/reset/89 1123s ok 1018 /checksum/SHA256/reset/90 1123s ok 1019 /checksum/SHA256/reset/91 1123s ok 1020 /checksum/SHA256/reset/92 1123s ok 1021 /checksum/SHA256/reset/93 1123s ok 1022 /checksum/SHA256/reset/94 1123s ok 1023 /checksum/SHA256/reset/95 1123s ok 1024 /checksum/SHA256/reset/96 1123s ok 1025 /checksum/SHA256/reset/97 1123s ok 1026 /checksum/SHA256/reset/98 1123s ok 1027 /checksum/SHA256/reset/99 1123s ok 1028 /checksum/SHA256/reset/100 1123s ok 1029 /checksum/SHA256/reset/101 1123s ok 1030 /checksum/SHA256/reset/102 1123s ok 1031 /checksum/SHA256/reset/103 1123s ok 1032 /checksum/SHA256/reset/104 1123s ok 1033 /checksum/SHA256/reset/105 1123s ok 1034 /checksum/SHA256/reset/106 1123s ok 1035 /checksum/SHA256/reset/107 1123s ok 1036 /checksum/SHA256/reset/108 1123s ok 1037 /checksum/SHA256/reset/109 1123s ok 1038 /checksum/SHA256/reset/110 1123s ok 1039 /checksum/SHA256/reset/111 1123s ok 1040 /checksum/SHA256/reset/112 1123s ok 1041 /checksum/SHA256/reset/113 1123s ok 1042 /checksum/SHA256/reset/114 1123s ok 1043 /checksum/SHA256/reset/115 1123s ok 1044 /checksum/SHA256/reset/116 1123s ok 1045 /checksum/SHA256/reset/117 1123s ok 1046 /checksum/SHA256/reset/118 1123s ok 1047 /checksum/SHA256/reset/119 1123s ok 1048 /checksum/SHA256/reset/120 1123s ok 1049 /checksum/SHA256/reset/121 1123s ok 1050 /checksum/SHA256/reset/122 1123s ok 1051 /checksum/SHA256/reset/123 1123s ok 1052 /checksum/SHA256/reset/124 1123s ok 1053 /checksum/SHA256/reset/125 1123s ok 1054 /checksum/SHA256/reset/126 1123s ok 1055 /checksum/SHA256/reset/127 1123s ok 1056 /checksum/SHA256/reset/128 1123s ok 1057 /checksum/SHA256/reset/129 1123s ok 1058 /checksum/SHA256/reset/130 1123s ok 1059 /checksum/SHA256/reset/131 1123s ok 1060 /checksum/SHA256/reset/132 1123s ok 1061 /checksum/SHA256/reset/133 1123s ok 1062 /checksum/SHA256/reset/134 1123s ok 1063 /checksum/SHA256/reset/135 1123s ok 1064 /checksum/SHA256/reset/136 1123s ok 1065 /checksum/SHA256/reset/137 1123s ok 1066 /checksum/SHA256/reset/138 1123s ok 1067 /checksum/SHA256/reset/139 1123s ok 1068 /checksum/SHA256/reset/140 1123s ok 1069 /checksum/SHA256/reset/141 1123s ok 1070 /checksum/SHA256/reset/142 1123s ok 1071 /checksum/SHA256/reset/143 1123s ok 1072 /checksum/SHA256/reset/144 1123s ok 1073 /checksum/SHA256/reset/145 1123s ok 1074 /checksum/SHA256/reset/146 1123s ok 1075 /checksum/SHA256/reset/147 1123s ok 1076 /checksum/SHA256/reset/148 1123s ok 1077 /checksum/SHA256/reset/149 1123s ok 1078 /checksum/SHA256/reset/150 1123s ok 1079 /checksum/SHA256/reset/151 1123s ok 1080 /checksum/SHA256/reset/152 1123s ok 1081 /checksum/SHA256/reset/153 1123s ok 1082 /checksum/SHA256/reset/154 1123s ok 1083 /checksum/SHA256/reset/155 1123s ok 1084 /checksum/SHA256/reset/156 1123s ok 1085 /checksum/SHA256/reset/157 1123s ok 1086 /checksum/SHA256/reset/158 1123s ok 1087 /checksum/SHA256/reset/159 1123s ok 1088 /checksum/SHA256/reset/160 1123s ok 1089 /checksum/SHA256/reset/161 1123s ok 1090 /checksum/SHA256/reset/162 1123s ok 1091 /checksum/SHA256/reset/163 1123s ok 1092 /checksum/SHA256/reset/164 1123s ok 1093 /checksum/SHA256/reset/165 1123s ok 1094 /checksum/SHA256/reset/166 1123s ok 1095 /checksum/SHA256/reset/167 1123s ok 1096 /checksum/SHA256/reset/168 1123s ok 1097 /checksum/SHA256/reset/169 1123s ok 1098 /checksum/SHA256/reset/170 1123s ok 1099 /checksum/SHA256/reset/171 1123s ok 1100 /checksum/SHA256/reset/172 1123s ok 1101 /checksum/SHA256/reset/173 1123s ok 1102 /checksum/SHA256/reset/174 1123s ok 1103 /checksum/SHA256/reset/175 1123s ok 1104 /checksum/SHA256/reset/176 1123s ok 1105 /checksum/SHA256/reset/177 1123s ok 1106 /checksum/SHA256/reset/178 1123s ok 1107 /checksum/SHA256/reset/179 1123s ok 1108 /checksum/SHA256/reset/180 1123s ok 1109 /checksum/SHA256/reset/181 1123s ok 1110 /checksum/SHA256/reset/182 1123s ok 1111 /checksum/SHA256/reset/183 1123s # End of reset tests 1123s # End of SHA256 tests 1123s # Start of SHA384 tests 1123s ok 1112 /checksum/SHA384/0 1123s ok 1113 /checksum/SHA384/1 1123s ok 1114 /checksum/SHA384/2 1123s ok 1115 /checksum/SHA384/3 1123s ok 1116 /checksum/SHA384/4 1123s ok 1117 /checksum/SHA384/5 1123s ok 1118 /checksum/SHA384/6 1123s ok 1119 /checksum/SHA384/7 1123s ok 1120 /checksum/SHA384/8 1123s ok 1121 /checksum/SHA384/9 1123s ok 1122 /checksum/SHA384/10 1123s ok 1123 /checksum/SHA384/11 1123s ok 1124 /checksum/SHA384/12 1123s ok 1125 /checksum/SHA384/13 1123s ok 1126 /checksum/SHA384/14 1123s ok 1127 /checksum/SHA384/15 1123s ok 1128 /checksum/SHA384/16 1123s ok 1129 /checksum/SHA384/17 1123s ok 1130 /checksum/SHA384/18 1123s ok 1131 /checksum/SHA384/19 1123s ok 1132 /checksum/SHA384/20 1123s ok 1133 /checksum/SHA384/21 1123s ok 1134 /checksum/SHA384/22 1123s ok 1135 /checksum/SHA384/23 1123s ok 1136 /checksum/SHA384/24 1123s ok 1137 /checksum/SHA384/25 1123s ok 1138 /checksum/SHA384/26 1123s ok 1139 /checksum/SHA384/27 1123s ok 1140 /checksum/SHA384/28 1123s ok 1141 /checksum/SHA384/29 1123s ok 1142 /checksum/SHA384/30 1123s ok 1143 /checksum/SHA384/31 1123s ok 1144 /checksum/SHA384/32 1123s ok 1145 /checksum/SHA384/33 1123s ok 1146 /checksum/SHA384/34 1123s ok 1147 /checksum/SHA384/35 1123s ok 1148 /checksum/SHA384/36 1123s ok 1149 /checksum/SHA384/37 1123s ok 1150 /checksum/SHA384/38 1123s ok 1151 /checksum/SHA384/39 1123s ok 1152 /checksum/SHA384/40 1123s ok 1153 /checksum/SHA384/41 1123s ok 1154 /checksum/SHA384/42 1123s ok 1155 /checksum/SHA384/43 1123s ok 1156 /checksum/SHA384/44 1123s ok 1157 /checksum/SHA384/45 1123s ok 1158 /checksum/SHA384/46 1123s ok 1159 /checksum/SHA384/47 1123s ok 1160 /checksum/SHA384/48 1123s ok 1161 /checksum/SHA384/49 1123s ok 1162 /checksum/SHA384/50 1123s ok 1163 /checksum/SHA384/51 1123s ok 1164 /checksum/SHA384/52 1123s ok 1165 /checksum/SHA384/53 1123s ok 1166 /checksum/SHA384/54 1123s ok 1167 /checksum/SHA384/55 1123s ok 1168 /checksum/SHA384/56 1123s ok 1169 /checksum/SHA384/57 1123s ok 1170 /checksum/SHA384/58 1123s ok 1171 /checksum/SHA384/59 1123s ok 1172 /checksum/SHA384/60 1123s ok 1173 /checksum/SHA384/61 1123s ok 1174 /checksum/SHA384/62 1123s ok 1175 /checksum/SHA384/63 1123s ok 1176 /checksum/SHA384/64 1123s ok 1177 /checksum/SHA384/65 1123s ok 1178 /checksum/SHA384/66 1123s ok 1179 /checksum/SHA384/67 1123s ok 1180 /checksum/SHA384/68 1123s ok 1181 /checksum/SHA384/69 1123s ok 1182 /checksum/SHA384/70 1123s ok 1183 /checksum/SHA384/71 1123s ok 1184 /checksum/SHA384/72 1123s ok 1185 /checksum/SHA384/73 1123s ok 1186 /checksum/SHA384/74 1123s ok 1187 /checksum/SHA384/75 1123s ok 1188 /checksum/SHA384/76 1123s ok 1189 /checksum/SHA384/77 1123s ok 1190 /checksum/SHA384/78 1123s ok 1191 /checksum/SHA384/79 1123s ok 1192 /checksum/SHA384/80 1123s ok 1193 /checksum/SHA384/81 1123s ok 1194 /checksum/SHA384/82 1123s ok 1195 /checksum/SHA384/83 1123s ok 1196 /checksum/SHA384/84 1123s ok 1197 /checksum/SHA384/85 1123s ok 1198 /checksum/SHA384/86 1123s ok 1199 /checksum/SHA384/87 1123s ok 1200 /checksum/SHA384/88 1123s ok 1201 /checksum/SHA384/89 1123s ok 1202 /checksum/SHA384/90 1123s ok 1203 /checksum/SHA384/91 1123s ok 1204 /checksum/SHA384/92 1123s ok 1205 /checksum/SHA384/93 1123s ok 1206 /checksum/SHA384/94 1123s ok 1207 /checksum/SHA384/95 1123s ok 1208 /checksum/SHA384/96 1123s ok 1209 /checksum/SHA384/97 1123s ok 1210 /checksum/SHA384/98 1123s ok 1211 /checksum/SHA384/99 1123s ok 1212 /checksum/SHA384/100 1123s ok 1213 /checksum/SHA384/101 1123s ok 1214 /checksum/SHA384/102 1123s ok 1215 /checksum/SHA384/103 1123s ok 1216 /checksum/SHA384/104 1123s ok 1217 /checksum/SHA384/105 1123s ok 1218 /checksum/SHA384/106 1123s ok 1219 /checksum/SHA384/107 1123s ok 1220 /checksum/SHA384/108 1123s ok 1221 /checksum/SHA384/109 1123s ok 1222 /checksum/SHA384/110 1123s ok 1223 /checksum/SHA384/111 1123s ok 1224 /checksum/SHA384/112 1123s ok 1225 /checksum/SHA384/113 1123s ok 1226 /checksum/SHA384/114 1123s ok 1227 /checksum/SHA384/115 1123s ok 1228 /checksum/SHA384/116 1123s ok 1229 /checksum/SHA384/117 1123s ok 1230 /checksum/SHA384/118 1123s ok 1231 /checksum/SHA384/119 1123s ok 1232 /checksum/SHA384/120 1123s ok 1233 /checksum/SHA384/121 1123s ok 1234 /checksum/SHA384/122 1123s ok 1235 /checksum/SHA384/123 1123s ok 1236 /checksum/SHA384/124 1123s ok 1237 /checksum/SHA384/125 1123s ok 1238 /checksum/SHA384/126 1123s ok 1239 /checksum/SHA384/127 1123s ok 1240 /checksum/SHA384/128 1123s ok 1241 /checksum/SHA384/129 1123s ok 1242 /checksum/SHA384/130 1123s ok 1243 /checksum/SHA384/131 1123s ok 1244 /checksum/SHA384/132 1123s ok 1245 /checksum/SHA384/133 1123s ok 1246 /checksum/SHA384/134 1123s ok 1247 /checksum/SHA384/135 1123s ok 1248 /checksum/SHA384/136 1123s ok 1249 /checksum/SHA384/137 1123s ok 1250 /checksum/SHA384/138 1123s ok 1251 /checksum/SHA384/139 1123s ok 1252 /checksum/SHA384/140 1123s ok 1253 /checksum/SHA384/141 1123s ok 1254 /checksum/SHA384/142 1123s ok 1255 /checksum/SHA384/143 1123s ok 1256 /checksum/SHA384/144 1123s ok 1257 /checksum/SHA384/145 1123s ok 1258 /checksum/SHA384/146 1123s ok 1259 /checksum/SHA384/147 1123s ok 1260 /checksum/SHA384/148 1123s ok 1261 /checksum/SHA384/149 1123s ok 1262 /checksum/SHA384/150 1123s ok 1263 /checksum/SHA384/151 1123s ok 1264 /checksum/SHA384/152 1123s ok 1265 /checksum/SHA384/153 1123s ok 1266 /checksum/SHA384/154 1123s ok 1267 /checksum/SHA384/155 1123s ok 1268 /checksum/SHA384/156 1123s ok 1269 /checksum/SHA384/157 1123s ok 1270 /checksum/SHA384/158 1123s ok 1271 /checksum/SHA384/159 1123s ok 1272 /checksum/SHA384/160 1123s ok 1273 /checksum/SHA384/161 1123s ok 1274 /checksum/SHA384/162 1123s ok 1275 /checksum/SHA384/163 1123s ok 1276 /checksum/SHA384/164 1123s ok 1277 /checksum/SHA384/165 1123s ok 1278 /checksum/SHA384/166 1123s ok 1279 /checksum/SHA384/167 1123s ok 1280 /checksum/SHA384/168 1123s ok 1281 /checksum/SHA384/169 1123s ok 1282 /checksum/SHA384/170 1123s ok 1283 /checksum/SHA384/171 1123s ok 1284 /checksum/SHA384/172 1123s ok 1285 /checksum/SHA384/173 1123s ok 1286 /checksum/SHA384/174 1123s ok 1287 /checksum/SHA384/175 1123s ok 1288 /checksum/SHA384/176 1123s ok 1289 /checksum/SHA384/177 1123s ok 1290 /checksum/SHA384/178 1123s ok 1291 /checksum/SHA384/179 1123s ok 1292 /checksum/SHA384/180 1123s ok 1293 /checksum/SHA384/181 1123s ok 1294 /checksum/SHA384/182 1123s ok 1295 /checksum/SHA384/183 1123s ok 1296 /checksum/SHA384/string 1123s ok 1297 /checksum/SHA384/bytes 1123s # Start of reset tests 1123s ok 1298 /checksum/SHA384/reset/0 1123s ok 1299 /checksum/SHA384/reset/1 1123s ok 1300 /checksum/SHA384/reset/2 1123s ok 1301 /checksum/SHA384/reset/3 1123s ok 1302 /checksum/SHA384/reset/4 1123s ok 1303 /checksum/SHA384/reset/5 1123s ok 1304 /checksum/SHA384/reset/6 1123s ok 1305 /checksum/SHA384/reset/7 1123s ok 1306 /checksum/SHA384/reset/8 1123s ok 1307 /checksum/SHA384/reset/9 1123s ok 1308 /checksum/SHA384/reset/10 1123s ok 1309 /checksum/SHA384/reset/11 1123s ok 1310 /checksum/SHA384/reset/12 1123s ok 1311 /checksum/SHA384/reset/13 1123s ok 1312 /checksum/SHA384/reset/14 1123s ok 1313 /checksum/SHA384/reset/15 1123s ok 1314 /checksum/SHA384/reset/16 1123s ok 1315 /checksum/SHA384/reset/17 1123s ok 1316 /checksum/SHA384/reset/18 1123s ok 1317 /checksum/SHA384/reset/19 1123s ok 1318 /checksum/SHA384/reset/20 1123s ok 1319 /checksum/SHA384/reset/21 1123s ok 1320 /checksum/SHA384/reset/22 1123s ok 1321 /checksum/SHA384/reset/23 1123s ok 1322 /checksum/SHA384/reset/24 1123s ok 1323 /checksum/SHA384/reset/25 1123s ok 1324 /checksum/SHA384/reset/26 1123s ok 1325 /checksum/SHA384/reset/27 1123s ok 1326 /checksum/SHA384/reset/28 1123s ok 1327 /checksum/SHA384/reset/29 1123s ok 1328 /checksum/SHA384/reset/30 1123s ok 1329 /checksum/SHA384/reset/31 1123s ok 1330 /checksum/SHA384/reset/32 1123s ok 1331 /checksum/SHA384/reset/33 1123s ok 1332 /checksum/SHA384/reset/34 1123s ok 1333 /checksum/SHA384/reset/35 1123s ok 1334 /checksum/SHA384/reset/36 1123s ok 1335 /checksum/SHA384/reset/37 1123s ok 1336 /checksum/SHA384/reset/38 1123s ok 1337 /checksum/SHA384/reset/39 1123s ok 1338 /checksum/SHA384/reset/40 1123s ok 1339 /checksum/SHA384/reset/41 1123s ok 1340 /checksum/SHA384/reset/42 1123s ok 1341 /checksum/SHA384/reset/43 1123s ok 1342 /checksum/SHA384/reset/44 1123s ok 1343 /checksum/SHA384/reset/45 1123s ok 1344 /checksum/SHA384/reset/46 1123s ok 1345 /checksum/SHA384/reset/47 1123s ok 1346 /checksum/SHA384/reset/48 1123s ok 1347 /checksum/SHA384/reset/49 1123s ok 1348 /checksum/SHA384/reset/50 1123s ok 1349 /checksum/SHA384/reset/51 1123s ok 1350 /checksum/SHA384/reset/52 1123s ok 1351 /checksum/SHA384/reset/53 1123s ok 1352 /checksum/SHA384/reset/54 1123s ok 1353 /checksum/SHA384/reset/55 1123s ok 1354 /checksum/SHA384/reset/56 1123s ok 1355 /checksum/SHA384/reset/57 1123s ok 1356 /checksum/SHA384/reset/58 1123s ok 1357 /checksum/SHA384/reset/59 1123s ok 1358 /checksum/SHA384/reset/60 1123s ok 1359 /checksum/SHA384/reset/61 1123s ok 1360 /checksum/SHA384/reset/62 1123s ok 1361 /checksum/SHA384/reset/63 1123s ok 1362 /checksum/SHA384/reset/64 1123s ok 1363 /checksum/SHA384/reset/65 1123s ok 1364 /checksum/SHA384/reset/66 1123s ok 1365 /checksum/SHA384/reset/67 1123s ok 1366 /checksum/SHA384/reset/68 1123s ok 1367 /checksum/SHA384/reset/69 1123s ok 1368 /checksum/SHA384/reset/70 1123s ok 1369 /checksum/SHA384/reset/71 1123s ok 1370 /checksum/SHA384/reset/72 1123s ok 1371 /checksum/SHA384/reset/73 1123s ok 1372 /checksum/SHA384/reset/74 1123s ok 1373 /checksum/SHA384/reset/75 1123s ok 1374 /checksum/SHA384/reset/76 1123s ok 1375 /checksum/SHA384/reset/77 1123s ok 1376 /checksum/SHA384/reset/78 1123s ok 1377 /checksum/SHA384/reset/79 1123s ok 1378 /checksum/SHA384/reset/80 1123s ok 1379 /checksum/SHA384/reset/81 1123s ok 1380 /checksum/SHA384/reset/82 1123s ok 1381 /checksum/SHA384/reset/83 1123s ok 1382 /checksum/SHA384/reset/84 1123s ok 1383 /checksum/SHA384/reset/85 1123s ok 1384 /checksum/SHA384/reset/86 1123s ok 1385 /checksum/SHA384/reset/87 1123s ok 1386 /checksum/SHA384/reset/88 1123s ok 1387 /checksum/SHA384/reset/89 1123s ok 1388 /checksum/SHA384/reset/90 1123s ok 1389 /checksum/SHA384/reset/91 1123s ok 1390 /checksum/SHA384/reset/92 1123s ok 1391 /checksum/SHA384/reset/93 1123s ok 1392 /checksum/SHA384/reset/94 1123s ok 1393 /checksum/SHA384/reset/95 1123s ok 1394 /checksum/SHA384/reset/96 1123s ok 1395 /checksum/SHA384/reset/97 1123s ok 1396 /checksum/SHA384/reset/98 1123s ok 1397 /checksum/SHA384/reset/99 1123s ok 1398 /checksum/SHA384/reset/100 1123s ok 1399 /checksum/SHA384/reset/101 1123s ok 1400 /checksum/SHA384/reset/102 1123s ok 1401 /checksum/SHA384/reset/103 1123s ok 1402 /checksum/SHA384/reset/104 1123s ok 1403 /checksum/SHA384/reset/105 1123s ok 1404 /checksum/SHA384/reset/106 1123s ok 1405 /checksum/SHA384/reset/107 1123s ok 1406 /checksum/SHA384/reset/108 1123s ok 1407 /checksum/SHA384/reset/109 1123s ok 1408 /checksum/SHA384/reset/110 1123s ok 1409 /checksum/SHA384/reset/111 1123s ok 1410 /checksum/SHA384/reset/112 1123s ok 1411 /checksum/SHA384/reset/113 1123s ok 1412 /checksum/SHA384/reset/114 1123s ok 1413 /checksum/SHA384/reset/115 1123s ok 1414 /checksum/SHA384/reset/116 1123s ok 1415 /checksum/SHA384/reset/117 1123s ok 1416 /checksum/SHA384/reset/118 1123s ok 1417 /checksum/SHA384/reset/119 1123s ok 1418 /checksum/SHA384/reset/120 1123s ok 1419 /checksum/SHA384/reset/121 1123s ok 1420 /checksum/SHA384/reset/122 1123s ok 1421 /checksum/SHA384/reset/123 1123s ok 1422 /checksum/SHA384/reset/124 1123s ok 1423 /checksum/SHA384/reset/125 1123s ok 1424 /checksum/SHA384/reset/126 1123s ok 1425 /checksum/SHA384/reset/127 1123s ok 1426 /checksum/SHA384/reset/128 1123s ok 1427 /checksum/SHA384/reset/129 1123s ok 1428 /checksum/SHA384/reset/130 1123s ok 1429 /checksum/SHA384/reset/131 1123s ok 1430 /checksum/SHA384/reset/132 1123s ok 1431 /checksum/SHA384/reset/133 1123s ok 1432 /checksum/SHA384/reset/134 1123s ok 1433 /checksum/SHA384/reset/135 1123s ok 1434 /checksum/SHA384/reset/136 1123s ok 1435 /checksum/SHA384/reset/137 1123s ok 1436 /checksum/SHA384/reset/138 1123s ok 1437 /checksum/SHA384/reset/139 1123s ok 1438 /checksum/SHA384/reset/140 1123s ok 1439 /checksum/SHA384/reset/141 1123s ok 1440 /checksum/SHA384/reset/142 1123s ok 1441 /checksum/SHA384/reset/143 1123s ok 1442 /checksum/SHA384/reset/144 1123s ok 1443 /checksum/SHA384/reset/145 1123s ok 1444 /checksum/SHA384/reset/146 1123s ok 1445 /checksum/SHA384/reset/147 1123s ok 1446 /checksum/SHA384/reset/148 1123s ok 1447 /checksum/SHA384/reset/149 1123s ok 1448 /checksum/SHA384/reset/150 1123s ok 1449 /checksum/SHA384/reset/151 1123s ok 1450 /checksum/SHA384/reset/152 1123s ok 1451 /checksum/SHA384/reset/153 1123s ok 1452 /checksum/SHA384/reset/154 1123s ok 1453 /checksum/SHA384/reset/155 1123s ok 1454 /checksum/SHA384/reset/156 1123s ok 1455 /checksum/SHA384/reset/157 1123s ok 1456 /checksum/SHA384/reset/158 1123s ok 1457 /checksum/SHA384/reset/159 1123s ok 1458 /checksum/SHA384/reset/160 1123s ok 1459 /checksum/SHA384/reset/161 1123s ok 1460 /checksum/SHA384/reset/162 1123s ok 1461 /checksum/SHA384/reset/163 1123s ok 1462 /checksum/SHA384/reset/164 1123s ok 1463 /checksum/SHA384/reset/165 1123s ok 1464 /checksum/SHA384/reset/166 1123s ok 1465 /checksum/SHA384/reset/167 1123s ok 1466 /checksum/SHA384/reset/168 1123s ok 1467 /checksum/SHA384/reset/169 1123s ok 1468 /checksum/SHA384/reset/170 1123s ok 1469 /checksum/SHA384/reset/171 1123s ok 1470 /checksum/SHA384/reset/172 1123s ok 1471 /checksum/SHA384/reset/173 1123s ok 1472 /checksum/SHA384/reset/174 1123s ok 1473 /checksum/SHA384/reset/175 1123s ok 1474 /checksum/SHA384/reset/176 1123s ok 1475 /checksum/SHA384/reset/177 1123s ok 1476 /checksum/SHA384/reset/178 1123s ok 1477 /checksum/SHA384/reset/179 1123s ok 1478 /checksum/SHA384/reset/180 1123s ok 1479 /checksum/SHA384/reset/181 1123s ok 1480 /checksum/SHA384/reset/182 1123s ok 1481 /checksum/SHA384/reset/183 1123s # End of reset tests 1123s # End of SHA384 tests 1123s # Start of SHA512 tests 1123s ok 1482 /checksum/SHA512/0 1123s ok 1483 /checksum/SHA512/1 1123s ok 1484 /checksum/SHA512/2 1123s ok 1485 /checksum/SHA512/3 1123s ok 1486 /checksum/SHA512/4 1123s ok 1487 /checksum/SHA512/5 1123s ok 1488 /checksum/SHA512/6 1123s ok 1489 /checksum/SHA512/7 1123s ok 1490 /checksum/SHA512/8 1123s ok 1491 /checksum/SHA512/9 1123s ok 1492 /checksum/SHA512/10 1123s ok 1493 /checksum/SHA512/11 1123s ok 1494 /checksum/SHA512/12 1123s ok 1495 /checksum/SHA512/13 1123s ok 1496 /checksum/SHA512/14 1123s ok 1497 /checksum/SHA512/15 1123s ok 1498 /checksum/SHA512/16 1123s ok 1499 /checksum/SHA512/17 1123s ok 1500 /checksum/SHA512/18 1123s ok 1501 /checksum/SHA512/19 1123s ok 1502 /checksum/SHA512/20 1123s ok 1503 /checksum/SHA512/21 1123s ok 1504 /checksum/SHA512/22 1123s ok 1505 /checksum/SHA512/23 1123s ok 1506 /checksum/SHA512/24 1123s ok 1507 /checksum/SHA512/25 1123s ok 1508 /checksum/SHA512/26 1123s ok 1509 /checksum/SHA512/27 1123s ok 1510 /checksum/SHA512/28 1123s ok 1511 /checksum/SHA512/29 1123s ok 1512 /checksum/SHA512/30 1123s ok 1513 /checksum/SHA512/31 1123s ok 1514 /checksum/SHA512/32 1123s ok 1515 /checksum/SHA512/33 1123s ok 1516 /checksum/SHA512/34 1123s ok 1517 /checksum/SHA512/35 1123s ok 1518 /checksum/SHA512/36 1123s ok 1519 /checksum/SHA512/37 1123s ok 1520 /checksum/SHA512/38 1123s ok 1521 /checksum/SHA512/39 1123s ok 1522 /checksum/SHA512/40 1123s ok 1523 /checksum/SHA512/41 1123s ok 1524 /checksum/SHA512/42 1123s ok 1525 /checksum/SHA512/43 1123s ok 1526 /checksum/SHA512/44 1123s ok 1527 /checksum/SHA512/45 1123s ok 1528 /checksum/SHA512/46 1123s ok 1529 /checksum/SHA512/47 1123s ok 1530 /checksum/SHA512/48 1123s ok 1531 /checksum/SHA512/49 1123s ok 1532 /checksum/SHA512/50 1123s ok 1533 /checksum/SHA512/51 1123s ok 1534 /checksum/SHA512/52 1123s ok 1535 /checksum/SHA512/53 1123s ok 1536 /checksum/SHA512/54 1123s ok 1537 /checksum/SHA512/55 1123s ok 1538 /checksum/SHA512/56 1123s ok 1539 /checksum/SHA512/57 1123s ok 1540 /checksum/SHA512/58 1123s ok 1541 /checksum/SHA512/59 1123s ok 1542 /checksum/SHA512/60 1123s ok 1543 /checksum/SHA512/61 1123s ok 1544 /checksum/SHA512/62 1123s ok 1545 /checksum/SHA512/63 1123s ok 1546 /checksum/SHA512/64 1123s ok 1547 /checksum/SHA512/65 1123s ok 1548 /checksum/SHA512/66 1123s ok 1549 /checksum/SHA512/67 1123s ok 1550 /checksum/SHA512/68 1123s ok 1551 /checksum/SHA512/69 1123s ok 1552 /checksum/SHA512/70 1123s ok 1553 /checksum/SHA512/71 1123s ok 1554 /checksum/SHA512/72 1123s ok 1555 /checksum/SHA512/73 1123s ok 1556 /checksum/SHA512/74 1123s ok 1557 /checksum/SHA512/75 1123s ok 1558 /checksum/SHA512/76 1123s ok 1559 /checksum/SHA512/77 1123s ok 1560 /checksum/SHA512/78 1123s ok 1561 /checksum/SHA512/79 1123s ok 1562 /checksum/SHA512/80 1123s ok 1563 /checksum/SHA512/81 1123s ok 1564 /checksum/SHA512/82 1123s ok 1565 /checksum/SHA512/83 1123s ok 1566 /checksum/SHA512/84 1123s ok 1567 /checksum/SHA512/85 1123s ok 1568 /checksum/SHA512/86 1123s ok 1569 /checksum/SHA512/87 1123s ok 1570 /checksum/SHA512/88 1123s ok 1571 /checksum/SHA512/89 1123s ok 1572 /checksum/SHA512/90 1123s ok 1573 /checksum/SHA512/91 1123s ok 1574 /checksum/SHA512/92 1123s ok 1575 /checksum/SHA512/93 1123s ok 1576 /checksum/SHA512/94 1123s ok 1577 /checksum/SHA512/95 1123s ok 1578 /checksum/SHA512/96 1123s ok 1579 /checksum/SHA512/97 1123s ok 1580 /checksum/SHA512/98 1123s ok 1581 /checksum/SHA512/99 1123s ok 1582 /checksum/SHA512/100 1123s ok 1583 /checksum/SHA512/101 1123s ok 1584 /checksum/SHA512/102 1123s ok 1585 /checksum/SHA512/103 1123s ok 1586 /checksum/SHA512/104 1123s ok 1587 /checksum/SHA512/105 1123s ok 1588 /checksum/SHA512/106 1123s ok 1589 /checksum/SHA512/107 1123s ok 1590 /checksum/SHA512/108 1123s ok 1591 /checksum/SHA512/109 1123s ok 1592 /checksum/SHA512/110 1123s ok 1593 /checksum/SHA512/111 1123s ok 1594 /checksum/SHA512/112 1123s ok 1595 /checksum/SHA512/113 1123s ok 1596 /checksum/SHA512/114 1123s ok 1597 /checksum/SHA512/115 1123s ok 1598 /checksum/SHA512/116 1123s ok 1599 /checksum/SHA512/117 1123s ok 1600 /checksum/SHA512/118 1123s ok 1601 /checksum/SHA512/119 1123s ok 1602 /checksum/SHA512/120 1123s ok 1603 /checksum/SHA512/121 1123s ok 1604 /checksum/SHA512/122 1123s ok 1605 /checksum/SHA512/123 1123s ok 1606 /checksum/SHA512/124 1123s ok 1607 /checksum/SHA512/125 1123s ok 1608 /checksum/SHA512/126 1123s ok 1609 /checksum/SHA512/127 1123s ok 1610 /checksum/SHA512/128 1123s ok 1611 /checksum/SHA512/129 1123s ok 1612 /checksum/SHA512/130 1123s ok 1613 /checksum/SHA512/131 1123s ok 1614 /checksum/SHA512/132 1123s ok 1615 /checksum/SHA512/133 1123s ok 1616 /checksum/SHA512/134 1123s ok 1617 /checksum/SHA512/135 1123s ok 1618 /checksum/SHA512/136 1123s ok 1619 /checksum/SHA512/137 1123s ok 1620 /checksum/SHA512/138 1123s ok 1621 /checksum/SHA512/139 1123s ok 1622 /checksum/SHA512/140 1123s ok 1623 /checksum/SHA512/141 1123s ok 1624 /checksum/SHA512/142 1123s ok 1625 /checksum/SHA512/143 1123s ok 1626 /checksum/SHA512/144 1123s ok 1627 /checksum/SHA512/145 1123s ok 1628 /checksum/SHA512/146 1123s ok 1629 /checksum/SHA512/147 1123s ok 1630 /checksum/SHA512/148 1123s ok 1631 /checksum/SHA512/149 1123s ok 1632 /checksum/SHA512/150 1123s ok 1633 /checksum/SHA512/151 1123s ok 1634 /checksum/SHA512/152 1123s ok 1635 /checksum/SHA512/153 1123s ok 1636 /checksum/SHA512/154 1123s ok 1637 /checksum/SHA512/155 1123s ok 1638 /checksum/SHA512/156 1123s ok 1639 /checksum/SHA512/157 1123s ok 1640 /checksum/SHA512/158 1123s ok 1641 /checksum/SHA512/159 1123s ok 1642 /checksum/SHA512/160 1123s ok 1643 /checksum/SHA512/161 1123s ok 1644 /checksum/SHA512/162 1123s ok 1645 /checksum/SHA512/163 1123s ok 1646 /checksum/SHA512/164 1123s ok 1647 /checksum/SHA512/165 1123s ok 1648 /checksum/SHA512/166 1123s ok 1649 /checksum/SHA512/167 1123s ok 1650 /checksum/SHA512/168 1123s ok 1651 /checksum/SHA512/169 1123s ok 1652 /checksum/SHA512/170 1123s ok 1653 /checksum/SHA512/171 1123s ok 1654 /checksum/SHA512/172 1123s ok 1655 /checksum/SHA512/173 1123s ok 1656 /checksum/SHA512/174 1123s ok 1657 /checksum/SHA512/175 1123s ok 1658 /checksum/SHA512/176 1123s ok 1659 /checksum/SHA512/177 1123s ok 1660 /checksum/SHA512/178 1123s ok 1661 /checksum/SHA512/179 1123s ok 1662 /checksum/SHA512/180 1123s ok 1663 /checksum/SHA512/181 1123s ok 1664 /checksum/SHA512/182 1123s ok 1665 /checksum/SHA512/183 1123s ok 1666 /checksum/SHA512/string 1123s ok 1667 /checksum/SHA512/bytes 1123s # Start of reset tests 1123s ok 1668 /checksum/SHA512/reset/0 1123s ok 1669 /checksum/SHA512/reset/1 1123s ok 1670 /checksum/SHA512/reset/2 1123s ok 1671 /checksum/SHA512/reset/3 1123s ok 1672 /checksum/SHA512/reset/4 1123s ok 1673 /checksum/SHA512/reset/5 1123s ok 1674 /checksum/SHA512/reset/6 1123s ok 1675 /checksum/SHA512/reset/7 1123s ok 1676 /checksum/SHA512/reset/8 1123s ok 1677 /checksum/SHA512/reset/9 1123s ok 1678 /checksum/SHA512/reset/10 1123s ok 1679 /checksum/SHA512/reset/11 1123s ok 1680 /checksum/SHA512/reset/12 1123s ok 1681 /checksum/SHA512/reset/13 1123s ok 1682 /checksum/SHA512/reset/14 1123s ok 1683 /checksum/SHA512/reset/15 1123s ok 1684 /checksum/SHA512/reset/16 1123s ok 1685 /checksum/SHA512/reset/17 1123s ok 1686 /checksum/SHA512/reset/18 1123s ok 1687 /checksum/SHA512/reset/19 1123s ok 1688 /checksum/SHA512/reset/20 1123s ok 1689 /checksum/SHA512/reset/21 1123s ok 1690 /checksum/SHA512/reset/22 1123s ok 1691 /checksum/SHA512/reset/23 1123s ok 1692 /checksum/SHA512/reset/24 1123s ok 1693 /checksum/SHA512/reset/25 1123s ok 1694 /checksum/SHA512/reset/26 1123s ok 1695 /checksum/SHA512/reset/27 1123s ok 1696 /checksum/SHA512/reset/28 1123s ok 1697 /checksum/SHA512/reset/29 1123s ok 1698 /checksum/SHA512/reset/30 1123s ok 1699 /checksum/SHA512/reset/31 1123s ok 1700 /checksum/SHA512/reset/32 1123s ok 1701 /checksum/SHA512/reset/33 1123s ok 1702 /checksum/SHA512/reset/34 1123s ok 1703 /checksum/SHA512/reset/35 1123s ok 1704 /checksum/SHA512/reset/36 1123s ok 1705 /checksum/SHA512/reset/37 1123s ok 1706 /checksum/SHA512/reset/38 1123s ok 1707 /checksum/SHA512/reset/39 1123s ok 1708 /checksum/SHA512/reset/40 1123s ok 1709 /checksum/SHA512/reset/41 1123s ok 1710 /checksum/SHA512/reset/42 1123s ok 1711 /checksum/SHA512/reset/43 1123s ok 1712 /checksum/SHA512/reset/44 1123s ok 1713 /checksum/SHA512/reset/45 1123s ok 1714 /checksum/SHA512/reset/46 1123s ok 1715 /checksum/SHA512/reset/47 1123s ok 1716 /checksum/SHA512/reset/48 1123s ok 1717 /checksum/SHA512/reset/49 1123s ok 1718 /checksum/SHA512/reset/50 1123s ok 1719 /checksum/SHA512/reset/51 1123s ok 1720 /checksum/SHA512/reset/52 1123s ok 1721 /checksum/SHA512/reset/53 1123s ok 1722 /checksum/SHA512/reset/54 1123s ok 1723 /checksum/SHA512/reset/55 1123s ok 1724 /checksum/SHA512/reset/56 1123s ok 1725 /checksum/SHA512/reset/57 1123s ok 1726 /checksum/SHA512/reset/58 1123s ok 1727 /checksum/SHA512/reset/59 1123s ok 1728 /checksum/SHA512/reset/60 1123s ok 1729 /checksum/SHA512/reset/61 1123s ok 1730 /checksum/SHA512/reset/62 1123s ok 1731 /checksum/SHA512/reset/63 1123s ok 1732 /checksum/SHA512/reset/64 1123s ok 1733 /checksum/SHA512/reset/65 1123s ok 1734 /checksum/SHA512/reset/66 1123s ok 1735 /checksum/SHA512/reset/67 1123s ok 1736 /checksum/SHA512/reset/68 1123s ok 1737 /checksum/SHA512/reset/69 1123s ok 1738 /checksum/SHA512/reset/70 1123s ok 1739 /checksum/SHA512/reset/71 1123s ok 1740 /checksum/SHA512/reset/72 1123s ok 1741 /checksum/SHA512/reset/73 1123s ok 1742 /checksum/SHA512/reset/74 1123s ok 1743 /checksum/SHA512/reset/75 1123s ok 1744 /checksum/SHA512/reset/76 1123s ok 1745 /checksum/SHA512/reset/77 1123s ok 1746 /checksum/SHA512/reset/78 1123s ok 1747 /checksum/SHA512/reset/79 1123s ok 1748 /checksum/SHA512/reset/80 1123s ok 1749 /checksum/SHA512/reset/81 1123s ok 1750 /checksum/SHA512/reset/82 1123s ok 1751 /checksum/SHA512/reset/83 1123s ok 1752 /checksum/SHA512/reset/84 1123s ok 1753 /checksum/SHA512/reset/85 1123s ok 1754 /checksum/SHA512/reset/86 1123s ok 1755 /checksum/SHA512/reset/87 1123s ok 1756 /checksum/SHA512/reset/88 1123s ok 1757 /checksum/SHA512/reset/89 1123s ok 1758 /checksum/SHA512/reset/90 1123s ok 1759 /checksum/SHA512/reset/91 1123s ok 1760 /checksum/SHA512/reset/92 1123s ok 1761 /checksum/SHA512/reset/93 1123s ok 1762 /checksum/SHA512/reset/94 1123s ok 1763 /checksum/SHA512/reset/95 1123s ok 1764 /checksum/SHA512/reset/96 1123s ok 1765 /checksum/SHA512/reset/97 1123s ok 1766 /checksum/SHA512/reset/98 1123s ok 1767 /checksum/SHA512/reset/99 1123s ok 1768 /checksum/SHA512/reset/100 1123s ok 1769 /checksum/SHA512/reset/101 1123s ok 1770 /checksum/SHA512/reset/102 1123s ok 1771 /checksum/SHA512/reset/103 1123s ok 1772 /checksum/SHA512/reset/104 1123s ok 1773 /checksum/SHA512/reset/105 1123s ok 1774 /checksum/SHA512/reset/106 1123s ok 1775 /checksum/SHA512/reset/107 1123s ok 1776 /checksum/SHA512/reset/108 1123s ok 1777 /checksum/SHA512/reset/109 1123s ok 1778 /checksum/SHA512/reset/110 1123s ok 1779 /checksum/SHA512/reset/111 1123s ok 1780 /checksum/SHA512/reset/112 1123s ok 1781 /checksum/SHA512/reset/113 1123s ok 1782 /checksum/SHA512/reset/114 1123s ok 1783 /checksum/SHA512/reset/115 1123s ok 1784 /checksum/SHA512/reset/116 1123s ok 1785 /checksum/SHA512/reset/117 1123s ok 1786 /checksum/SHA512/reset/118 1123s ok 1787 /checksum/SHA512/reset/119 1123s ok 1788 /checksum/SHA512/reset/120 1123s ok 1789 /checksum/SHA512/reset/121 1123s ok 1790 /checksum/SHA512/reset/122 1123s ok 1791 /checksum/SHA512/reset/123 1123s ok 1792 /checksum/SHA512/reset/124 1123s ok 1793 /checksum/SHA512/reset/125 1123s ok 1794 /checksum/SHA512/reset/126 1123s ok 1795 /checksum/SHA512/reset/127 1123s ok 1796 /checksum/SHA512/reset/128 1123s ok 1797 /checksum/SHA512/reset/129 1123s ok 1798 /checksum/SHA512/reset/130 1123s ok 1799 /checksum/SHA512/reset/131 1123s ok 1800 /checksum/SHA512/reset/132 1123s ok 1801 /checksum/SHA512/reset/133 1123s ok 1802 /checksum/SHA512/reset/134 1123s ok 1803 /checksum/SHA512/reset/135 1123s ok 1804 /checksum/SHA512/reset/136 1123s ok 1805 /checksum/SHA512/reset/137 1123s ok 1806 /checksum/SHA512/reset/138 1123s ok 1807 /checksum/SHA512/reset/139 1123s ok 1808 /checksum/SHA512/reset/140 1123s ok 1809 /checksum/SHA512/reset/141 1123s ok 1810 /checksum/SHA512/reset/142 1123s ok 1811 /checksum/SHA512/reset/143 1123s ok 1812 /checksum/SHA512/reset/144 1123s ok 1813 /checksum/SHA512/reset/145 1123s ok 1814 /checksum/SHA512/reset/146 1123s ok 1815 /checksum/SHA512/reset/147 1123s ok 1816 /checksum/SHA512/reset/148 1123s ok 1817 /checksum/SHA512/reset/149 1123s ok 1818 /checksum/SHA512/reset/150 1123s ok 1819 /checksum/SHA512/reset/151 1123s ok 1820 /checksum/SHA512/reset/152 1123s ok 1821 /checksum/SHA512/reset/153 1123s ok 1822 /checksum/SHA512/reset/154 1123s ok 1823 /checksum/SHA512/reset/155 1123s ok 1824 /checksum/SHA512/reset/156 1123s ok 1825 /checksum/SHA512/reset/157 1123s ok 1826 /checksum/SHA512/reset/158 1123s ok 1827 /checksum/SHA512/reset/159 1123s ok 1828 /checksum/SHA512/reset/160 1123s ok 1829 /checksum/SHA512/reset/161 1123s ok 1830 /checksum/SHA512/reset/162 1123s ok 1831 /checksum/SHA512/reset/163 1123s ok 1832 /checksum/SHA512/reset/164 1123s ok 1833 /checksum/SHA512/reset/165 1123s ok 1834 /checksum/SHA512/reset/166 1123s ok 1835 /checksum/SHA512/reset/167 1123s ok 1836 /checksum/SHA512/reset/168 1123s ok 1837 /checksum/SHA512/reset/169 1123s ok 1838 /checksum/SHA512/reset/170 1123s ok 1839 /checksum/SHA512/reset/171 1123s ok 1840 /checksum/SHA512/reset/172 1123s ok 1841 /checksum/SHA512/reset/173 1123s ok 1842 /checksum/SHA512/reset/174 1123s ok 1843 /checksum/SHA512/reset/175 1123s ok 1844 /checksum/SHA512/reset/176 1123s ok 1845 /checksum/SHA512/reset/177 1123s ok 1846 /checksum/SHA512/reset/178 1123s ok 1847 /checksum/SHA512/reset/179 1123s ok 1848 /checksum/SHA512/reset/180 1123s ok 1849 /checksum/SHA512/reset/181 1123s ok 1850 /checksum/SHA512/reset/182 1123s ok 1851 /checksum/SHA512/reset/183 1123s # End of reset tests 1123s # End of SHA512 tests 1123s # End of checksum tests 1123s ok - glib/checksum.test 1123s # Running test: glib/markup-collect.test 1123s ok - glib/markup-collect.test 1123s TAP version 14 1123s # random seed: R02S07bdade33c16b8cf45b4529bdd83bdf4 1123s 1..21 1123s # Start of markup tests 1123s # Start of collect tests 1123s ok 1 /markup/collect/0 1123s ok 2 /markup/collect/1 1123s ok 3 /markup/collect/2 1123s ok 4 /markup/collect/3 1123s ok 5 /markup/collect/4 1123s ok 6 /markup/collect/5 1123s ok 7 /markup/collect/6 1123s ok 8 /markup/collect/7 1123s ok 9 /markup/collect/8 1123s ok 10 /markup/collect/9 1123s ok 11 /markup/collect/10 1123s ok 12 /markup/collect/11 1123s ok 13 /markup/collect/12 1123s ok 14 /markup/collect/13 1123s ok 15 /markup/collect/14 1123s # Running test: glib/closure-refcount.test 1123s ok 16 /markup/collect/15 1123s ok 17 /markup/collect/16 1123s ok 18 /markup/collect/17 1123s ok 19 /markup/collect/18 1123s ok 20 /markup/collect/19 1123s ok 21 /markup/collect/cleanup 1123s # End of collect tests 1123s # End of markup tests 1123s TAP version 14 1123s # random seed: R02S5c2a5b345dbfafb406c2abd1f2650975 1123s 1..1 1123s # Start of closure tests 1123s # Init 0xa01e350 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from main thread 1123s # Yielding from thread1 1124s # Yielding from thread2 1124s # Yielding from thread1 1124s # Yielding from main thread 1124s # Yielding from thread1 1124s # Yielding from thread1 1124s # Yielding from thread2 1124s # Yielding from main thread 1124s # Yielding from thread1 1129s # Yielding from thread2 1129s ok - glib/closure-refcount.test 1129s # Yielding from thread1 1129s # Yielding from thread1 1129s # Yielding from main thread 1129s # Yielding from thread2 1129s # Yielding from thread1 1129s # Yielding from thread1 1129s # Stopping 1129s # Stopped 1129s ok 1 /closure/refcount 1129s # slow test /closure/refcount executed in 1.43 secs 1129s # End of closure tests 1129s TAP version 14 1129s # random seed: R02S1c08ed3ce01f446734447419103a46a4 1129s 1..17 1129s # Start of converter tests 1129s ok 1 /converter/basics 1129s # End of converter tests 1129s # Start of converter-input-stream tests 1129s ok 2 /converter-input-stream/expander 1129s ok 3 /converter-input-stream/compressor 1129s # Start of truncation tests 1129s ok 4 /converter-input-stream/truncation/zlib 1129s ok 5 /converter-input-stream/truncation/gzip 1129s ok 6 /converter-input-stream/truncation/raw 1129s # End of truncation tests 1129s # Start of charset tests 1129s ok 7 /converter-input-stream/charset/utf8->latin1 1129s ok 8 /converter-input-stream/charset/latin1->utf8 1129s ok 9 /converter-input-stream/charset/fallbacks 1129s # End of charset tests 1129s # End of converter-input-stream tests 1129s # Start of converter-output-stream tests 1129s # Start of roundtrip tests 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1129s ok 10 /converter-output-stream/roundtrip/zlib-0 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1129s ok 11 /converter-output-stream/roundtrip/zlib-9 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1129s ok 12 /converter-output-stream/roundtrip/gzip-0 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1129s ok 13 /converter-output-stream/roundtrip/gzip-9 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1129s ok 14 /converter-output-stream/roundtrip/raw-0 1129s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1129s ok 15 /converter-output-stream/roundtrip/raw-9 1129s # End of roundtrip tests 1129s # End of converter-output-stream tests 1129s # Start of converter-stream tests 1129s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xae66768 and GSocketClientAsyncConnectData 0xae69240 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xae71630 for GSocketClientAsyncConnectData 0xae69240 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s ok 16 /converter-stream/pollable 1129s ok 17 /converter-stream/leftover 1129s # End of converter-stream tests 1129s TAP version 14 1129s # random seed: R02S0249c8fca4f7260cc7c2f43a2e8a58a1 1129s 1..22 1129s # Start of snprintf tests 1129s ok 1 /snprintf/retval-and-trunc 1129s ok 2 /snprintf/%d 1129s ok 3 /snprintf/%d-invalid 1129s ok 4 /snprintf/%o 1129s ok 5 /snprintf/%u 1129s ok 6 /snprintf/%x 1129s ok 7 /snprintf/%X 1129s ok 8 /snprintf/%f 1129s ok 9 /snprintf/%e 1129s ok 10 /snprintf/%c 1129s ok 11 /snprintf/%s 1129s ok 12 /snprintf/%n 1129s ok 13 /snprintf/test-percent 1129s ok 14 /snprintf/test-positional-params 1129s ok 15 /snprintf/test-64bit 1129s # End of snprintf tests 1129s # Start of printf tests 1129s ok 16 /printf/test-percent 1129s ok 17 /printf/test-positional-params 1129s ok 18 /printf/test-64bit 1129s # Start of test-64bit tests 1129s # Start of subprocess tests 1129s # End of subprocess tests 1129s # End of test-64bit tests 1129s # End of printf tests 1129s # Start of sprintf tests 1129s ok 19 /sprintf/test-positional-params 1129s ok 20 /sprintf/upper-bound 1129s # End of sprintf tests 1129s # Start of vasprintf tests 1129s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1129s ok 21 /vasprintf/invalid-format-placeholder 1129s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1129s ok 22 /vasprintf/invalid-wide-string 1129s # End of vasprintf tests 1129s TAP version 14 1129s # random seed: R02Sa0881fea47a3db235f715d5627c3bd97 1129s 1..11 1129s # Start of inet-address tests 1129s ok 1 /inet-address/parse 1129s ok 2 /inet-address/any 1129s ok 3 /inet-address/loopback 1129s ok 4 /inet-address/bytes 1129s ok 5 /inet-address/property 1129s # End of inet-address tests 1129s # Start of socket-address tests 1129s ok 6 /socket-address/basic 1129s ok 7 /socket-address/to-string 1129s # End of socket-address tests 1129s # Start of address-mask tests 1129s ok 8 /address-mask/parse 1129s ok 9 /address-mask/property 1129s ok 10 /address-mask/equal 1129s ok 11 /address-mask/match 1129s # End of address-mask tests 1129s TAP version 14 1129s # random seed: R02S49a264aef8a8f7abf86536d822a06a78 1129s 1..1 1129s # Start of glib tests 1129s ok 1 /glib/relation 1129s # End of glib tests 1129s TAP version 14 1129s # random seed: R02Sebcb246f42fc71088c18585205987991 1129s 1..1 1129s # Start of gdbus tests 1129s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/home 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/cache 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/system-config2 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/config 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/system-data2 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/data 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/state 1129s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_6WFB62/gdbus/bz627724/.dirs/runtime 1129s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1129s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1129s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1129s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1129s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1129s ok 1 /gdbus/bz627724 1129s # End of gdbus tests 1129s TAP version 14 1129s # random seed: R02S4d8786d890ee02ab08b4e53cb62ef781 1129s 1..6 1129s # Start of type tests 1129s ok 1 /type/registration-serial 1129s ok 2 /type/interface-prerequisite 1129s ok 3 /type/interface-check 1129s ok 4 /type/next-base 1129s ok 5 /type/is-a 1129s # Invalid types can?t be queried. 1129s # Unclassed types can?t be queried. 1129s ok 6 /type/query 1129s # End of type tests 1129s TAP version 14 1129s # random seed: R02Sd1b06dcc3c66ca2b0e66e7f42c5f47db 1129s 1..1 1129s # Start of memory-settings-backend tests 1129s ok 1 /memory-settings-backend/extension-point-registered 1129s # End of memory-settings-backend tests 1129s TAP version 14 1129s # random seed: R02S310184fdaacdddba0ca40e9dc3307849 1129s 1..7 1129s # Start of strvbuilder tests 1129s ok 1 /strvbuilder/empty 1129s ok 2 /strvbuilder/add 1129s ok 3 /strvbuilder/addv 1129s ok 4 /strvbuilder/add_many 1129s ok 5 /strvbuilder/take 1129s ok 6 /strvbuilder/ref 1129s ok 7 /strvbuilder/unref_to_strv 1129s # End of strvbuilder tests 1129s TAP version 14 1129s # random seed: R02S40aee1a2afa192c7657a81d0454c4395 1129s 1..1 1129s # Start of memchunk tests 1129s ok 1 /memchunk/basic 1129s # End of memchunk tests 1129s TAP version 14 1129s # random seed: R02Sa78f2b3be5d8c8551fb4a1c64867d95e 1129s 1..11 1129s # Start of proxy tests 1129s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ?gio-proxy-resolver? 1129s ok 1 /proxy/direct_sync 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721760 and GSocketClientAsyncConnectData 0xc7218c8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc724220 for GSocketClientAsyncConnectData 0xc7218c8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s ok 2 /proxy/direct_async 1129s ok 3 /proxy/single_sync 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc723e40 and GSocketClientAsyncConnectData 0xc7218c8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725120 for GSocketClientAsyncConnectData 0xc7218c8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s ok 4 /proxy/single_async 1129s ok 5 /proxy/multiple_sync 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc723fd0 and GSocketClientAsyncConnectData 0xc723f88 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725120 for GSocketClientAsyncConnectData 0xc723f88 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc724088 for GSocketClientAsyncConnectData 0xc723f88 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s ok 6 /proxy/multiple_async 1129s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1129s ok 7 /proxy/invalid-uris-sync 1129s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721548 and GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc723e40 and GSocketClientAsyncConnectData 0xc723f88 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721548 and GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725120 for GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc723e40 and GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725120 for GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s ok 8 /proxy/invalid-uris-async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721760 and GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1129s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc725760 and GSocketClientAsyncConnectData 0xc7240d8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725410 for GSocketClientAsyncConnectData 0xc7240d8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721548 and GSocketClientAsyncConnectData 0xc723f88 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725410 for GSocketClientAsyncConnectData 0xc723f88 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s ok 9 /proxy/dns 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721548 and GSocketClientAsyncConnectData 0xc7218c8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725630 for GSocketClientAsyncConnectData 0xc7218c8 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc725760 and GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725630 for GSocketClientAsyncConnectData 0xc724670 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1129s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1129s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xc721548 and GSocketClientAsyncConnectData 0xc725580 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1129s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xc725630 for GSocketClientAsyncConnectData 0xc725580 1129s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1129s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1129s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1129s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1129s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1129s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1129s ok 10 /proxy/override 1129s ok 11 /proxy/enumerator-ports 1129s # End of proxy tests 1129s TAP version 14 1129s # random seed: R02S5888742197922078adc2f2c7a09f097d 1129s 1..1 1129s # Start of gobject tests 1129s # Start of refcount tests 1129s # init 0x4c91978 1129s # 1129s # init 0x4c99a38 1129s # 1129s # Running test: glib/converter-stream.test 1129s ok - glib/converter-stream.test 1129s # Running test: glib/test-printf.test 1129s ok - glib/test-printf.test 1129s # Running test: glib/inet-address.test 1129s ok - glib/inet-address.test 1129s # Running test: glib/relation.test 1129s ok - glib/relation.test 1129s # Running test: glib/gdbus-bz627724.test 1129s ok - glib/gdbus-bz627724.test 1129s # Running test: glib/type.test 1129s ok - glib/type.test 1129s # Running test: glib/memory-settings-backend.test 1129s ok - glib/memory-settings-backend.test 1129s # Running test: glib/strvbuilder.test 1129s ok - glib/strvbuilder.test 1129s # Running test: glib/memchunk.test 1129s ok - glib/memchunk.test 1129s # Running test: glib/proxy-test.test 1129s ok - glib/proxy-test.test 1129s # Running test: glib/signals-refcount1.test 1129s # Executing: glib/signals-refcount1.test 1131s ok - glib/signals-refcount1.test 1131s # Running test: glib/socket-address.test 1131s # dispose 0x4c91978! 1131s # 1131s # dispose 0x4c99a38! 1131s # 1131s ok 1 /gobject/refcount/signals 1131s # slow test /gobject/refcount/signals executed in 5.00 secs 1131s # End of refcount tests 1131s # End of gobject tests 1131s TAP version 14 1131s # random seed: R02S066f644d8c2085e5f91946d4cad0cb7e 1131s 1..2 1131s # Start of socket tests 1131s # Start of address tests 1131s # Start of unix tests 1131s ok 1 /socket/address/unix/construct 1131s ok 2 /socket/address/unix/to-string 1131s # End of unix tests 1131s # End of address tests 1131s # End of socket tests 1131s ok - glib/socket-address.test 1131s # Running test: glib/ifaceproperties.test 1131s TAP version 14 1131s # random seed: R02S7c387f38fe86311ed9eedbc1c4e3ea65 1131s 1..7 1131s # Start of interface tests 1131s # Start of properties tests 1131s ok 1 /interface/properties/set 1131s ok 2 /interface/properties/notify 1131s ok 3 /interface/properties/find-overridden 1131s ok 4 /interface/properties/list-overridden 1131s ok 5 /interface/properties/find-interface 1131s ok 6 /interface/properties/list-interface 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1131s ok 7 /interface/properties/not-overridden 1131s # End of properties tests 1131s # End of interface tests 1131s ok - glib/ifaceproperties.test 1131s # Running test: glib/readwrite.test 1131s ok - glib/readwrite.test 1131s # Running test: glib/markup.test 1131s ok - glib/markup.test 1131s # Running test: glib/g-file.test 1131s ok - glib/g-file.test 1131s # Running test: glib/types.test 1131s ok - glib/types.test 1131s # Running test: glib/include.test 1131s ok - glib/include.test 1131s # Running test: glib/gdbus-connection.test 1131s TAP version 14 1131s # random seed: R02Scaee2a0210ea90f100ede64c79829f0f 1131s 1..3 1131s # Start of readwrite tests 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1131s ok 1 /readwrite/test_g_file_open_readwrite 1131s ok 2 /readwrite/test_g_file_create_readwrite 1131s ok 3 /readwrite/test_g_file_replace_readwrite 1131s # End of readwrite tests 1131s TAP version 14 1131s # random seed: R02S1cc4255e002cf03bd5b112e4c84d5367 1131s 1..1 1131s # Start of markup tests 1131s ok 1 /markup/stack 1131s # End of markup tests 1131s TAP version 14 1131s # random seed: R02Sd9d8477ee87334e488e88ec86a6cc73d 1131s 1..8 1131s # Start of g-file tests 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1131s ok 1 /g-file/test_g_file_new_null 1131s ok 2 /g-file/test_g_file_new_for_path 1131s ok 3 /g-file/test_g_file_new_for_uri 1131s ok 4 /g-file/test_g_file_dup 1131s ok 5 /g-file/test_g_file_get_parse_name_utf8 1131s file:///tmp/test-tmp-glib_g-file.test-S8L752 1131s file:///tmp 1131s file:///tmp 1131s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1131s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1131s ok 6 /g-file/test_g_file_new_for_commandline_arg 1131s /dir1 /dir1/dir2/dir3/ 1131s /dir1/ /dir1/dir2/dir3/ 1131s /dir1 /dir1/dir2/dir3 1131s /dir1/ /dir1/dir2/dir3 1131s /tmp/ /something/ 1131s /dir1/dir2 /dir1/ 1131s //dir1/new //dir1/new/dir2/dir3 1131s /dir/UTF-8 p??li? ?lu?ou?k? k?? /dir/UTF-8 p??li? ?lu?ou?k? k??/dir2 1131s file:///dir1 file:///dir1/dir2/dir3/ 1131s file:///dir1/ file:///dir1/dir2/dir3/ 1131s file:///dir1 file:///dir1/dir2/dir3 1131s file:///dir1/ file:///dir1/dir2/dir3 1131s file:///tmp/ file:///something/ 1131s file:///dir1/dir2 file:///dir1/ 1131s file:////dir1/new file:////dir1/new/dir2/dir3 1131s 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 1131s ok 7 /g-file/test_g_file_has_prefix 1131s ok 8 /g-file/test_g_file_get_parent_child 1131s # End of g-file tests 1131s TAP version 14 1131s # random seed: R02Se8c5b793328a65bef873081e936c62e4 1131s 1..1 1131s # Start of types tests 1131s ok 1 /types/basic_types 1131s # End of types tests 1131s TAP version 14 1131s # random seed: R02S53940d6befc5b144ce484e96e5dfaa20 1131s 1..1 1131s # Start of include tests 1131s ok 1 /include/rwlock 1131s # End of include tests 1131s TAP version 14 1131s # random seed: R02Sf6faae47a837d51bbd03711913d0aec2 1131s 1..9 1131s # Start of gdbus tests 1131s # Start of connection tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/bus-failure/.dirs/runtime 1131s ok 1 /gdbus/connection/bus-failure 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/basic/.dirs/runtime 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 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 2 /gdbus/connection/basic 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/life-cycle/.dirs/runtime 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 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 3 /gdbus/connection/life-cycle 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/send/.dirs/runtime 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 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 4 /gdbus/connection/send 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signals/.dirs/runtime 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 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 5 /gdbus/connection/signals 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/signal-match-rules/.dirs/runtime 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 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 6 /gdbus/connection/signal-match-rules 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/filter/.dirs/runtime 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 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 7 /gdbus/connection/filter 1131s ok - glib/gdbus-connection.test 1131s # Running test: glib/search-utils.test 1131s ok - glib/search-utils.test 1131s # Running test: glib/basic-signals.test 1131s ok - glib/basic-signals.test 1131s # Running test: glib/resolver-parsing.test 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/serials/.dirs/runtime 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 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 8 /gdbus/connection/serials 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_7H8752/gdbus/connection/cancel/.dirs/runtime 1131s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 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 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 9 /gdbus/connection/cancel 1131s # End of connection tests 1131s # End of gdbus tests 1131s TAP version 14 1131s # random seed: R02S3dab44ce52107cd809e4674fa5e5a884 1131s # GLib-DEBUG: Current user locale: C.UTF-8 1131s 1..6 1131s # Start of search tests 1131s # GLib-DEBUG: Started 1131s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1131s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1131s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1131s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1131s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1131s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1131s ok 1 /search/basic 1131s # GLib-DEBUG: Started 1131s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1131s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1131s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1131s # GLib-DEBUG: 'AzaÃs' - 'Azais' should NOT match: OK 1131s # GLib-DEBUG: 'Azais' - 'AzaÃs' should match: OK 1131s ok 2 /search/composed 1131s # GLib-DEBUG: Started 1131s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1131s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1131s ok 3 /search/decomposed 1131s # GLib-DEBUG: Started 1131s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1131s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1131s ok 4 /search/turkish 1131s # GLib-DEBUG: Started 1131s # GLib-DEBUG: 'jor' - 'J?rgen' should match: OK 1131s # GLib-DEBUG: 'Jo?r' - 'Jorgen' should NOT match: OK 1131s # GLib-DEBUG: 'jor' - 'Jo?rgen' should match: OK 1131s ok 5 /search/c_locale_unicode 1131s # GLib-DEBUG: Started 1131s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1131s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1131s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1131s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1131s ok 6 /search/multi_words 1131s # End of search tests 1131s TAP version 14 1131s # random seed: R02S51d00d14673043914a705402814dcedf 1131s 1..1 1131s # Start of gobject tests 1131s ok 1 /gobject/basic-signals 1131s # End of gobject tests 1131s TAP version 14 1131s # random seed: R02S931e6a739d5f4f70d9f8568cb60d48e7 1131s 1..21 1131s # Start of gresolver tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/invalid-header/.dirs/runtime 1131s ok 1 /gresolver/invalid-header 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/record-ownership/.dirs/runtime 1131s ok 2 /gresolver/record-ownership 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/unknown-record-type/.dirs/runtime 1131s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1131s ok 3 /gresolver/unknown-record-type 1131s # Start of mx tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/valid/.dirs/runtime 1131s ok 4 /gresolver/mx/valid 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/.dirs/runtime 1131s ok 5 /gresolver/mx/invalid 1131s # Start of invalid tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short/.dirs/runtime 1131s ok 6 /gresolver/mx/invalid/too-short 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/mx/invalid/too-short2/.dirs/runtime 1131s ok 7 /gresolver/mx/invalid/too-short2 1131s # End of invalid tests 1131s # End of mx tests 1131s # Start of ns tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/valid/.dirs/runtime 1131s ok 8 /gresolver/ns/valid 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/ns/invalid/.dirs/runtime 1131s ok 9 /gresolver/ns/invalid 1131s # End of ns tests 1131s # Start of soa tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/valid/.dirs/runtime 1131s ok 10 /gresolver/soa/valid 1131s # Start of invalid tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/mname/.dirs/runtime 1131s ok 11 /gresolver/soa/invalid/mname 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/rname/.dirs/runtime 1131s ok 12 /gresolver/soa/invalid/rname 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/soa/invalid/too-short/.dirs/runtime 1131s ok 13 /gresolver/soa/invalid/too-short 1131s # End of invalid tests 1131s # End of soa tests 1131s # Start of srv tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/config 1131s ok - glib/resolver-parsing.test 1131s # Running test: glib/volumemonitor.test 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/valid/.dirs/runtime 1131s ok 14 /gresolver/srv/valid 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/.dirs/runtime 1131s ok 15 /gresolver/srv/invalid 1131s # Start of invalid tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short/.dirs/runtime 1131s ok 16 /gresolver/srv/invalid/too-short 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/srv/invalid/too-short2/.dirs/runtime 1131s ok 17 /gresolver/srv/invalid/too-short2 1131s # End of invalid tests 1131s # End of srv tests 1131s # Start of txt tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/.dirs/runtime 1131s ok 18 /gresolver/txt/valid 1131s # Start of valid tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/valid/multiple-strings/.dirs/runtime 1131s ok 19 /gresolver/txt/valid/multiple-strings 1131s # End of valid tests 1131s # Start of invalid tests 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/home 1131s ok - glib/volumemonitor.test 1131s # Running test: glib/properties.test 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/empty/.dirs/runtime 1131s ok 20 /gresolver/txt/invalid/empty 1131s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/home 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/cache 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/system-config2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/config 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/system-data2 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/data 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/state 1131s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_5IZT52/gresolver/txt/invalid/overflow/.dirs/runtime 1131s ok 21 /gresolver/txt/invalid/overflow 1131s # End of invalid tests 1131s # End of txt tests 1131s # End of gresolver tests 1131s TAP version 14 1131s # random seed: R02S5cf303fb6b5d84ec106d05b68be4b2f0 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1131s 1..3 1131s # Start of volumemonitor tests 1131s ok 1 /volumemonitor/connected_drives 1131s ok 2 /volumemonitor/volumes 1131s ok 3 /volumemonitor/mounts 1131s # End of volumemonitor tests 1131s TAP version 14 1131s # random seed: R02S2bf8662ce85b592fdee5f0fda1a9aea3 1131s 1..14 1131s # Start of properties tests 1131s ok - glib/properties.test 1131s # Running test: glib/portal-support-none.test 1131s ok - glib/portal-support-none.test 1131s ok 1 /properties/install 1131s ok 2 /properties/install-many 1131s ok 3 /properties/notify 1131s ok 4 /properties/notify-queue 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1131s ok 5 /properties/construct 1131s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1131s # Test g_object_get_property with an initialized value 1131s # Test g_object_get_property with an uninitialized value 1131s # Test g_object_get_property with a transformable value 1131s ok 6 /properties/get-property 1131s ok 7 /properties/testv_with_no_properties 1131s ok 8 /properties/testv_with_valid_properties 1131s ok 9 /properties/testv_with_invalid_property_type 1131s ok 10 /properties/testv_with_invalid_property_names 1131s ok 11 /properties/testv_getv 1131s ok 12 /properties/testv_notify_queue 1131s # Start of notify tests 1131s ok 13 /properties/notify/too-many-freezes 1131s # End of notify tests 1131s # Start of set-property tests 1131s # Start of variant tests 1131s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1131s ok 14 /properties/set-property/variant/floating 1131s # End of variant tests 1131s # End of set-property tests 1131s # End of properties tests 1131s TAP version 14 1131s # random seed: R02Se845684673ddc1bd13714f6cc9766c4d 1131s 1..1 1131s # Start of portal-support tests 1131s ok 1 /portal-support/none 1131s # End of portal-support tests 1131s # Running test: glib/autoptr-gio.test 1131s TAP version 14 1131s # random seed: R02S6ab82de9849f4f580e7eb8f692a4d716 1131s 1..1 1131s # Start of autoptr tests 1131s ok - glib/autoptr-gio.test 1131s # Running test: glib/bitlock.test 1131s ok - glib/bitlock.test 1131s # Running test: glib/option-argv0.test 1131s ok - glib/option-argv0.test 1131s # Running test: glib/base64.test 1131s ok - glib/base64.test 1131s # Running test: glib/unicode-normalize.test 1131s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1131s ok 1 /autoptr/autoptr 1131s # End of autoptr tests 1131s TAP version 14 1131s # random seed: R02Sed6a1f071bb27bafb6917aba3773b13e 1131s 1..1 1131s # Start of bitlock tests 1131s # Start of performance tests 1131s # max perf: iterations per second 1131s ok 1 /bitlock/performance/uncontended 1131s # End of performance tests 1131s # End of bitlock tests 1131s TAP version 14 1131s # random seed: R02Sbc8b50c0e8bfd64d83db2f46faaf5895 1131s 1..1 1131s # Start of option tests 1131s ok 1 /option/argv0 1131s # End of option tests 1131s TAP version 14 1131s # random seed: R02S5934f9eb1e8bb6596d10d6d26f9aa391 1131s 1..28 1131s # Start of base64 tests 1131s ok 1 /base64/encode 1131s ok 2 /base64/decode 1131s ok 3 /base64/decode-inplace 1131s ok 4 /base64/encode-decode 1131s # Start of full tests 1131s ok 5 /base64/full/1 1131s ok 6 /base64/full/2 1131s ok 7 /base64/full/3 1131s ok 8 /base64/full/4 1131s # End of full tests 1131s # Start of encode tests 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1131s ok 9 /base64/encode/empty 1131s # Start of incremental tests 1131s # Start of small-block tests 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1131s ok 10 /base64/encode/incremental/small-block/1 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1131s ok 11 /base64/encode/incremental/small-block/2 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1131s ok 12 /base64/encode/incremental/small-block/3 1131s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1131s ok 13 /base64/encode/incremental/small-block/4 1131s # End of small-block tests 1131s # End of incremental tests 1131s # End of encode tests 1131s # Start of incremental tests 1131s # Start of nobreak tests 1131s ok 14 /base64/incremental/nobreak/1 1131s ok 15 /base64/incremental/nobreak/2 1131s ok 16 /base64/incremental/nobreak/3 1131s ok 17 /base64/incremental/nobreak/4-a 1131s ok 18 /base64/incremental/nobreak/4-b 1131s ok 19 /base64/incremental/nobreak/4-c 1131s # End of nobreak tests 1131s # Start of break tests 1131s ok 20 /base64/incremental/break/1 1131s ok 21 /base64/incremental/break/2 1131s ok 22 /base64/incremental/break/3 1131s # End of break tests 1131s # Start of smallblock tests 1131s ok 23 /base64/incremental/smallblock/1 1131s ok 24 /base64/incremental/smallblock/2 1131s ok 25 /base64/incremental/smallblock/3 1131s ok 26 /base64/incremental/smallblock/4 1131s # End of smallblock tests 1131s # End of incremental tests 1131s # Start of decode tests 1131s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1131s ok 27 /base64/decode/empty 1131s # End of decode tests 1131s # Start of encode-decode tests 1131s # Vector 0: 1131s # Vector 1: f 1131s # Vector 2: fo 1131s # Vector 3: foo 1131s # Vector 4: foob 1131s # Vector 5: fooba 1131s # Vector 6: foobar 1131s ok 28 /base64/encode-decode/rfc4648 1131s # End of encode-decode tests 1131s # End of base64 tests 1131s TAP version 14 1131s # random seed: R02Scd86a0d16b51b4ca6babcd5fef5458b9 1131s 1..3 1131s # Start of unicode tests 1131s # Processing Part0 # Specific cases 1131s # Processing Part1 # Character by character test 1131s # Processing Part2 # Canonical Order Test 1131s # Processing Part3 # PRI #29 Test 1131s # Processing Part4 # Canonical closures (excluding Hangul) 1131s ok - glib/unicode-normalize.test 1131s # Running test: glib/atomic-c-89.test 1131s # Processing Part5 # Chained primary composites 1131s ok 1 /unicode/normalize 1131s # Invalid UTF-8 vector 0 1131s # Invalid UTF-8 vector 1 1131s # Invalid UTF-8 vector 2 1131s # Invalid UTF-8 vector 3 1131s # Invalid UTF-8 vector 4 1131s # Invalid UTF-8 vector 5 1131s # Invalid UTF-8 vector 6 1131s # Invalid UTF-8 vector 7 1131s # Invalid UTF-8 vector 8 1131s # Invalid UTF-8 vector 9 1131s # Invalid UTF-8 vector 10 1131s # Invalid UTF-8 vector 11 1131s # Invalid UTF-8 vector 12 1131s ok 2 /unicode/normalize-invalid 1131s # Start of normalize tests 1131s ok 3 /unicode/normalize/bad-length 1131s # End of normalize tests 1131s # End of unicode tests 1131s TAP version 14 1131s # random seed: R02Sdae76e319c2b61da30712960ff3679e8 1131s 1..2 1131s # Start of atomic tests 1131s ok 1 /atomic/types 1131s ok 2 /atomic/threaded 1131s # End of atomic tests 1131s ok - glib/atomic-c-89.test 1131s # Running test: glib/mainloop.test 1131s TAP version 14 1131s # random seed: R02Sb8488f0c1530e4f596385f867145c7b4 1131s 1..45 1131s # Start of maincontext tests 1131s ok 1 /maincontext/basic 1131s # Add same-priority sources: 30 1131s # Find each source: 3 1132s # Remove in random order: 33 1132s ok 2 /maincontext/nsources_same_priority 1132s # Add different-priority sources: 32 1132s # Find each source: 3 1132s # Remove in random order: 38 1132s ok 3 /maincontext/nsources_different_priority 1132s # Add sources from threads: 112 1132s # Remove sources from threads: 197 1132s ok 4 /maincontext/nsources_threadpool 1132s ok 5 /maincontext/source_finalization 1132s # /maincontext/idle-once summary: Test g_idle_add_once() works 1132s ok 6 /maincontext/idle-once 1132s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1132s ok 7 /maincontext/timeout-once 1132s # Start of source_finalization_from_source tests 1132s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 8 /maincontext/source_finalization_from_source/0 1132s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 9 /maincontext/source_finalization_from_source/1 1132s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 10 /maincontext/source_finalization_from_source/2 1132s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 11 /maincontext/source_finalization_from_source/3 1132s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 12 /maincontext/source_finalization_from_source/4 1132s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 13 /maincontext/source_finalization_from_source/5 1132s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 14 /maincontext/source_finalization_from_source/6 1132s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 15 /maincontext/source_finalization_from_source/7 1132s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 16 /maincontext/source_finalization_from_source/8 1132s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1132s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1132s ok 17 /maincontext/source_finalization_from_source/9 1132s # End of source_finalization_from_source tests 1132s # Start of source_finalization_from_dispatch tests 1132s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1132s ok 18 /maincontext/source_finalization_from_dispatch/0 1132s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1132s ok 19 /maincontext/source_finalization_from_dispatch/1 1132s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1132s ok 20 /maincontext/source_finalization_from_dispatch/2 1132s # End of source_finalization_from_dispatch tests 1132s # End of maincontext tests 1132s # Start of mainloop tests 1132s ok 21 /mainloop/basic 1132s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1132s ok 23 /mainloop/priorities 1133s ok 24 /mainloop/invoke 1133s # slow test /mainloop/invoke executed in 0.50 secs 1133s ok 25 /mainloop/child_sources # SKIP Not reliable on older ARM hardware 1133s ok 26 /mainloop/recursive_child_sources # SKIP Not reliable on older ARM hardware 1133s ok 27 /mainloop/recursive_loop_child_sources 1133s ok 28 /mainloop/swapping_child_sources 1133s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1133s ok 29 /mainloop/blocked_child_sources 1133s # Executing: glib/mainloop.test 1134s ok 30 /mainloop/source_time 1134s # slow test /mainloop/source_time executed in 1.00 secs 1134s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1134s ok 31 /mainloop/overflow 1134s ok 32 /mainloop/ready-time 1134s # slow test /mainloop/ready-time executed in 0.50 secs 1134s ok 33 /mainloop/wakeup 1134s ok 34 /mainloop/remove-invalid 1134s ok 35 /mainloop/unref-while-pending 1137s ok 36 /mainloop/unix-fd 1137s # slow test /mainloop/unix-fd executed in 0.90 secs 1137s ok 37 /mainloop/unix-fd-source 1137s ok 38 /mainloop/source-unix-fd-api 1137s ok - glib/mainloop.test 1137s # Running test: glib/collate.test 1137s ok - glib/collate.test 1137s # Running test: glib/gutils-user-database.test 1137s ok - glib/gutils-user-database.test 1137s # Running test: glib/mount-operation.test 1137s ok - glib/mount-operation.test 1137s # Running test: glib/gdbus-connection-loss.test 1137s ok - glib/gdbus-connection-loss.test 1137s # Running test: glib/g-file-info.test 1137s ok - glib/g-file-info.test 1137s # Running test: glib/markup-subparser.test 1137s ok - glib/markup-subparser.test 1137s # Running test: glib/gsubprocess.test 1137s ok 39 /mainloop/wait 1137s ok 40 /mainloop/unix-file-poll 1137s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1137s ok 41 /mainloop/unix-fd-priority 1137s ok 42 /mainloop/nfds 1137s ok 43 /mainloop/steal-fd 1137s # Start of ownerless-polling tests 1137s ok 44 /mainloop/ownerless-polling/attach-first 1137s ok 45 /mainloop/ownerless-polling/pop-first 1137s # End of ownerless-polling tests 1137s # End of mainloop tests 1137s TAP version 14 1137s # random seed: R02S152daadf49be91d655a0319de241cae0 1137s 1..9 1137s # Start of unicode tests 1137s # Start of collate tests 1137s ok 1 /unicode/collate/0 1137s ok 2 /unicode/collate/1 1137s ok 3 /unicode/collate/2 1137s # End of collate tests 1137s # Start of collate-key tests 1137s ok 4 /unicode/collate-key/0 1137s ok 5 /unicode/collate-key/1 1137s ok 6 /unicode/collate-key/2 1137s # End of collate-key tests 1137s # Start of collate-filename tests 1137s ok 7 /unicode/collate-filename/0 1137s ok 8 /unicode/collate-filename/1 1137s ok 9 /unicode/collate-filename/2 1137s # End of collate-filename tests 1137s # End of unicode tests 1137s TAP version 14 1137s # random seed: R02S4088dd11ad05aa49656df082bddaf96c 1137s 1..1 1137s # Start of gutils tests 1137s ok 1 /gutils/get_user_database_entry 1137s # End of gutils tests 1137s TAP version 14 1137s # random seed: R02Sf6f1b7afa5b80b062c390cdc38cd38a7 1137s 1..2 1137s # Start of mount-operation tests 1137s ok 1 /mount-operation/construction 1137s ok 2 /mount-operation/properties 1137s # End of mount-operation tests 1137s TAP version 14 1137s # random seed: R02S1497e5c4ab2d4768443dc1be93799aeb 1137s 1..1 1137s # Start of gdbus tests 1137s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/home 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/cache 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/system-config2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/config 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/system-data2 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/data 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/state 1137s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_OS2Y52/gdbus/connection-loss/.dirs/runtime 1137s ok 1 /gdbus/connection-loss 1137s # End of gdbus tests 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1137s TAP version 14 1137s # random seed: R02S0f168133b843003b95a97fd73f25775b 1137s 1..6 1137s # Start of g-file-info tests 1137s ok 1 /g-file-info/test_g_file_info 1137s # /g-file-info/xattrs summary: Test setting and getting escaped xattrs 1137s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1137s ok 2 /g-file-info/xattrs 1137s # /g-file-info/set-modified-date-time-precision summary: Test that g_file_info_set_modified_date_time() preserves microseconds 1137s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3116 1137s ok 3 /g-file-info/set-modified-date-time-precision 1137s # Start of test_g_file_info tests 1137s # /g-file-info/test_g_file_info/modification-time summary: Test that getting the modification time of a file works. 1137s ok 4 /g-file-info/test_g_file_info/modification-time 1137s # /g-file-info/test_g_file_info/access-time summary: Test that getting the access time of a file works. 1137s ok 5 /g-file-info/test_g_file_info/access-time 1137s # /g-file-info/test_g_file_info/creation-time summary: Test that getting the creation time of a file works. 1137s ok 6 /g-file-info/test_g_file_info/creation-time 1137s # End of test_g_file_info tests 1137s # End of g-file-info tests 1137s TAP version 14 1137s # random seed: R02Se24e8ee5b1789e0d11adfcf63fea7b21 1137s 1..14 1137s # Start of glib tests 1137s # Start of markup tests 1137s # Start of subparser tests 1137s # Start of success tests 1137s ok 1 /glib/markup/subparser/success/0 1137s ok 2 /glib/markup/subparser/success/1 1137s ok 3 /glib/markup/subparser/success/2 1137s ok 4 /glib/markup/subparser/success/3 1137s ok 5 /glib/markup/subparser/success/4 1137s ok 6 /glib/markup/subparser/success/5 1137s ok 7 /glib/markup/subparser/success/6 1137s # End of success tests 1137s # Start of failure tests 1137s ok 8 /glib/markup/subparser/failure/0 1137s ok 9 /glib/markup/subparser/failure/1 1137s ok 10 /glib/markup/subparser/failure/2 1137s ok 11 /glib/markup/subparser/failure/3 1137s ok 12 /glib/markup/subparser/failure/4 1137s ok 13 /glib/markup/subparser/failure/5 1137s ok 14 /glib/markup/subparser/failure/6 1137s # End of failure tests 1137s # End of subparser tests 1137s # End of markup tests 1137s # End of glib tests 1137s TAP version 14 1137s # random seed: R02S3161528a21e643d127ae30504aee4d8b 1137s 1..84 1137s # Start of gsubprocess tests 1137s ok 1 /gsubprocess/noop 1137s ok 2 /gsubprocess/noop-all-to-null 1137s ok 3 /gsubprocess/noop-no-wait 1137s ok 4 /gsubprocess/noop-stdin-inherit 1137s ok 5 /gsubprocess/search-path 1137s ok 6 /gsubprocess/search-path-from-envp 1138s # Executing: glib/gsubprocess.test 1139s ok 7 /gsubprocess/signal 1139s # slow test /gsubprocess/signal executed in 3.48 secs 1139s ok 8 /gsubprocess/exit1 1139s ok 9 /gsubprocess/echo1 1139s ok 10 /gsubprocess/echo-merged 1139s ok 11 /gsubprocess/cat-utf8 1142s ok 12 /gsubprocess/cat-eof 1142s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1143s # Executing: glib/gsubprocess.test 1143s ok 13 /gsubprocess/multi1 1143s # slow test /gsubprocess/multi1 executed in 3.01 secs 1143s ok 14 /gsubprocess/communicate 1148s ok 15 /gsubprocess/terminate 1148s # slow test /gsubprocess/terminate executed in 2.97 secs 1148s ok - glib/gsubprocess.test 1148s ok 16 /gsubprocess/fail-initialization 1148s ok 17 /gsubprocess/env 1148s ok 18 /gsubprocess/cwd 1148s ok 19 /gsubprocess/launcher-close 1148s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1148s ok 20 /gsubprocess/stdout-file 1148s ok 21 /gsubprocess/stdout-fd 1148s ok 22 /gsubprocess/child-setup 1148s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1148s ok 23 /gsubprocess/launcher-environment 1148s # Start of exit1 tests 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1148s ok 24 /gsubprocess/exit1/cancel 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1148s ok 25 /gsubprocess/exit1/cancel_in_cb 1148s # End of exit1 tests 1148s # Start of communicate tests 1148s ok 26 /gsubprocess/communicate/cancelled 1148s ok 27 /gsubprocess/communicate/async 1148s ok 28 /gsubprocess/communicate/utf8 1148s # hello world 1148s ok 29 /gsubprocess/communicate/no-pipes 1148s ok 30 /gsubprocess/communicate/separate-stderr 1148s ok 31 /gsubprocess/communicate/stdout-only 1148s # hello world 1148s ok 32 /gsubprocess/communicate/stderr-only 1148s ok 33 /gsubprocess/communicate/stdout-silence 1148s ok 34 /gsubprocess/communicate/nothing 1148s # Start of async tests 1148s ok 35 /gsubprocess/communicate/async/cancelled 1148s # hello world 1148s ok 36 /gsubprocess/communicate/async/no-pipes 1148s ok 37 /gsubprocess/communicate/async/separate-stderr 1148s ok 38 /gsubprocess/communicate/async/stdout-only 1148s # hello world 1148s ok 39 /gsubprocess/communicate/async/stderr-only 1148s ok 40 /gsubprocess/communicate/async/stdout-silence 1148s # Start of cancelled tests 1148s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1148s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1148s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1148s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1148s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1148s # End of cancelled tests 1148s # End of async tests 1148s # Start of utf8 tests 1148s ok 46 /gsubprocess/communicate/utf8/cancelled 1148s ok 47 /gsubprocess/communicate/utf8/async 1148s # hello world 1148s ok 48 /gsubprocess/communicate/utf8/no-pipes 1148s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1148s ok 50 /gsubprocess/communicate/utf8/stdout-only 1148s # hello world 1148s ok 51 /gsubprocess/communicate/utf8/stderr-only 1148s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1148s ok 53 /gsubprocess/communicate/utf8/invalid 1148s # Start of async tests 1148s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1148s # hello world 1148s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1148s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1148s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1148s # hello world 1148s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1148s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1148s ok 60 /gsubprocess/communicate/utf8/async/invalid 1148s # Start of cancelled tests 1148s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1148s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1148s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1148s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1148s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1148s # End of cancelled tests 1148s # End of async tests 1148s # Start of cancelled tests 1148s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1148s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1148s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1148s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1148s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1148s # End of cancelled tests 1148s # End of utf8 tests 1148s # Start of cancelled tests 1148s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1148s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1148s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1148s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1148s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1148s # End of cancelled tests 1148s # End of communicate tests 1148s # Start of env tests 1148s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1148s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1148s ok 76 /gsubprocess/env/inherit 1148s # End of env tests 1148s # Start of pass-fd tests 1148s ok 77 /gsubprocess/pass-fd/basic 1148s ok 78 /gsubprocess/pass-fd/empty-child-setup 1148s ok 79 /gsubprocess/pass-fd/inherit-fds 1148s # End of pass-fd tests 1148s # Start of fd-conflation tests 1148s ok 80 /gsubprocess/fd-conflation/basic 1148s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1148s ok 82 /gsubprocess/fd-conflation/inherit-fds 1148s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1148s # End of fd-conflation tests 1148s # Start of exit-status tests 1148s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1148s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1148s ok 84 /gsubprocess/exit-status/trapped 1148s # End of exit-status tests 1148s # End of gsubprocess tests 1148s TAP version 14 1148s # random seed: R02Sf6640e6a0966bdf23264bc0ea15630f8 1148s 1..1 1148s # Start of network-monitor tests 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1148s # Running test: glib/network-monitor-race.test 1148s # Executing: glib/network-monitor-race.test 1148s ok - glib/network-monitor-race.test 1148s ok 1 /network-monitor/create-in-thread 1148s # slow test /network-monitor/create-in-thread executed in 2.22 secs 1148s # End of network-monitor tests 1148s # Running test: glib/memory-monitor-portal.test 1149s TAP version 13 1149s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1149s 1..1 1149s ok - glib/memory-monitor-portal.test 1149s # Running test: glib/gdatetime.test 1149s TAP version 14 1149s # random seed: R02Sb73efe9054a50577bde1a92d907e3632 1149s 1..68 1149s # Start of GDateTime tests 1149s # Bug Reference: http://bugzilla.gnome.org/702674 1149s ok 1 /GDateTime/invalid 1149s ok 2 /GDateTime/add_days 1149s ok 3 /GDateTime/add_full 1149s ok 4 /GDateTime/add_hours 1149s ok 5 /GDateTime/add_minutes 1149s ok 6 /GDateTime/add_months 1149s ok 7 /GDateTime/add_seconds 1149s ok 8 /GDateTime/add_weeks 1149s ok 9 /GDateTime/add_years 1149s ok 10 /GDateTime/compare 1149s ok 11 /GDateTime/diff 1149s ok 12 /GDateTime/equal 1149s ok 13 /GDateTime/get_day_of_week 1149s ok 14 /GDateTime/get_day_of_month 1149s ok 15 /GDateTime/get_day_of_year 1149s ok 16 /GDateTime/get_hour 1149s ok 17 /GDateTime/get_microsecond 1149s ok 18 /GDateTime/get_minute 1149s ok 19 /GDateTime/get_month 1149s ok 20 /GDateTime/get_second 1149s ok 21 /GDateTime/get_utc_offset 1149s ok 22 /GDateTime/get_year 1149s ok 23 /GDateTime/hash 1149s ok 24 /GDateTime/new_from_unix 1149s ok 25 /GDateTime/new_from_unix_utc 1149s ok 26 /GDateTime/new_from_timeval 1149s ok 27 /GDateTime/new_from_timeval_utc 1149s ok 28 /GDateTime/new_from_iso8601 1149s ok 29 /GDateTime/new_full 1149s ok 30 /GDateTime/now 1149s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1149s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1149s # %a -> expected: Sat 1149s # %a -> actual: Sat 1149s # %A -> expected: Saturday 1149s # %A -> actual: Saturday 1149s # %b -> expected: Oct 1149s # %b -> actual: Oct 1149s # %B -> expected: October 1149s # %B -> actual: October 1149s # %d -> expected: 24 1149s # %d -> actual: 24 1149s # %d -> expected: 01 1149s # %d -> actual: 01 1149s # %e -> expected: 24 1149s # %e -> actual: 24 1149s # %e -> expected:  1 1149s # %e -> actual:  1 1149s # %f -> expected: 001000 1149s # %f -> actual: 001000 1149s # %h -> expected: Oct 1149s # %h -> actual: Oct 1149s # %H -> expected: 00 1149s # %H -> actual: 00 1149s # %H -> expected: 15 1149s # %H -> actual: 15 1149s # %I -> expected: 12 1149s # %I -> actual: 12 1149s # %I -> expected: 12 1149s # %I -> actual: 12 1149s # %I -> expected: 03 1149s # %I -> actual: 03 1149s # %j -> expected: 297 1149s # %j -> actual: 297 1149s # %k -> expected:  0 1149s # %k -> actual:  0 1149s # %k -> expected: 13 1149s # %k -> actual: 13 1149s # %l -> expected: 12 1149s # %l -> actual: 12 1149s # %I -> expected: 12 1149s # %I -> actual: 12 1149s # %l -> expected:  1 1149s # %l -> actual:  1 1149s # %l -> expected: 10 1149s # %l -> actual: 10 1149s # %m -> expected: 10 1149s # %m -> actual: 10 1149s # %M -> expected: 00 1149s # %M -> actual: 00 1149s # %p -> expected: AM 1149s # %p -> actual: AM 1149s # %p -> expected: PM 1149s # %p -> actual: PM 1149s # %P -> expected: am 1149s # %P -> actual: am 1149s # %P -> expected: pm 1149s # %P -> actual: pm 1149s # %r -> expected: 12:00:00 AM 1149s # %r -> actual: 12:00:00 AM 1149s # %r -> expected: 01:13:13 PM 1149s # %r -> actual: 01:13:13 PM 1149s # %R -> expected: 00:00 1149s # %R -> actual: 00:00 1149s # %R -> expected: 13:13 1149s # %R -> actual: 13:13 1149s # %S -> expected: 00 1149s # %S -> actual: 00 1149s # %t -> expected: 1149s # %t -> actual: 1149s # %u -> expected: 6 1149s # %u -> actual: 6 1149s # %x -> expected: 10/24/09 1149s # %x -> actual: 10/24/09 1149s # %X -> expected: 00:00:00 1149s # %X -> actual: 00:00:00 1149s # %X -> expected: 13:14:15 1149s # %X -> actual: 13:14:15 1149s # %y -> expected: 09 1149s # %y -> actual: 09 1149s # %Y -> expected: 2009 1149s # %Y -> actual: 2009 1149s # %% -> expected: % 1149s # %% -> actual: % 1149s # % -> expected: 1149s # % -> actual: 1149s # %9 -> expected: (null) 1149s # %9 -> actual: (null) 1149s # %Z -> expected: UTC 1149s # %Z -> actual: UTC 1149s # %#Z %Z -> expected: utc UTC 1149s # %#Z %Z -> actual: utc UTC 1149s ok 32 /GDateTime/printf 1149s # %a -> expected: ÅÚ 1149s # %a -> actual: ÅÚ 1149s # %A -> expected: ÅÚÍËÆü 1149s # %A -> actual: ÅÚÍËÆü 1149s # %b -> expected: 10·î 1149s # %b -> actual: 10·î 1149s # %B -> expected: 10·î 1149s # %B -> actual: 10·î 1149s # %c -> expected: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1149s # %c -> actual: 2009ǯ10·î24Æü 00»þ00ʬ00Éà 1149s # %C -> expected: 20 1149s # %C -> actual: 20 1149s # %d -> expected: 24 1149s # %d -> actual: 24 1149s # %d -> expected: 01 1149s # %d -> actual: 01 1149s # %e -> expected: 24 1149s # %e -> actual: 24 1149s # %h -> expected: 10·î 1149s # %h -> actual: 10·î 1149s # %H -> expected: 00 1149s # %H -> actual: 00 1149s # %H -> expected: 15 1149s # %H -> actual: 15 1149s # %I -> expected: 12 1149s # %I -> actual: 12 1149s # %I -> expected: 12 1149s # %I -> actual: 12 1149s # %I -> expected: 03 1149s # %I -> actual: 03 1149s # %j -> expected: 297 1149s # %j -> actual: 297 1149s # %k -> expected: ?0 1149s # %k -> actual: ?0 1149s # %k -> expected: 13 1149s # %k -> actual: 13 1149s # %l -> expected: 12 1149s # %l -> actual: 12 1149s # %I -> expected: 12 1149s # %I -> actual: 12 1149s # %l -> expected: ?1 1149s # %l -> actual: ?1 1149s # %l -> expected: 10 1149s # %l -> actual: 10 1149s # %m -> expected: 10 1149s # %m -> actual: 10 1149s # %M -> expected: 00 1149s # %M -> actual: 00 1149s # %p -> expected: ¸áÁ° 1149s # %p -> actual: ¸áÁ° 1149s # %p -> expected: ¸á¸å 1149s # %p -> actual: ¸á¸å 1149s # %P -> expected: ¸áÁ° 1149s # %P -> actual: ¸áÁ° 1149s # %P -> expected: ¸á¸å 1149s # %P -> actual: ¸á¸å 1149s # %r -> expected: ¸áÁ°12»þ00ʬ00Éà 1149s # %r -> actual: ¸áÁ°12»þ00ʬ00Éà 1149s # %r -> expected: ¸á¸å01»þ13ʬ13Éà 1149s # %r -> actual: ¸á¸å01»þ13ʬ13Éà 1149s # %R -> expected: 00:00 1149s # %R -> actual: 00:00 1149s # %R -> expected: 13:13 1149s # %R -> actual: 13:13 1149s # %S -> expected: 00 1149s # %S -> actual: 00 1149s # %t -> expected: 1149s # %t -> actual: 1149s # %u -> expected: 6 1149s # %u -> actual: 6 1149s # %x -> expected: 2009ǯ10·î24Æü 1149s # %x -> actual: 2009ǯ10·î24Æü 1149s # %X -> expected: 00»þ00ʬ00Éà 1149s # %X -> actual: 00»þ00ʬ00Éà 1149s # %X -> expected: 13»þ14ʬ15Éà 1149s # %X -> actual: 13»þ14ʬ15Éà 1149s # %y -> expected: 09 1149s # %y -> actual: 09 1149s # %Y -> expected: 2009 1149s # %Y -> actual: 2009 1149s # %% -> expected: % 1149s # %% -> actual: % 1149s # % -> expected: 1149s # % -> actual: 1149s # %9 -> expected: (null) 1149s # %9 -> actual: (null) 1149s # %Ec -> expected: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1149s # %Ec -> actual: Ê¿À®21ǯ10·î24Æü 00»þ00ʬ00Éà 1149s # %EC -> expected: Ê¿À® 1149s # %EC -> actual: Ê¿À® 1149s # %Ex -> expected: Ê¿À®21ǯ10·î24Æü 1149s # %Ex -> actual: Ê¿À®21ǯ10·î24Æü 1149s # %EX -> expected: 00»þ00ʬ00Éà 1149s # %EX -> actual: 00»þ00ʬ00Éà 1149s # %Ey -> expected: 21 1149s # %Ey -> actual: 21 1149s # %EY -> expected: Ê¿À®21ǯ 1149s # %EY -> actual: Ê¿À®21ǯ 1149s ok 33 /GDateTime/non_utf8_printf 1149s # ???? -> expected: ???? 1149s # ???? -> actual: ???? 1149s # %H?%M -> expected: 23?15 1149s # %H?%M -> actual: 23?15 1149s # %H?%M -> expected: 23?15 1149s # %H?%M -> actual: 23?15 1149s ok 34 /GDateTime/format_unrepresentable 1149s ok 35 /GDateTime/format_iso8601 1149s ok 36 /GDateTime/strftime 1149s # %d -> expected: 01 1149s # %d -> actual: 01 1149s # %_d -> expected: 1 1149s # %_d -> actual: 1 1149s # %-d -> expected: 1 1149s # %-d -> actual: 1 1149s # %0d -> expected: 01 1149s # %0d -> actual: 01 1149s # %d -> expected: 21 1149s # %d -> actual: 21 1149s # %_d -> expected: 21 1149s # %_d -> actual: 21 1149s # %-d -> expected: 21 1149s # %-d -> actual: 21 1149s # %0d -> expected: 21 1149s # %0d -> actual: 21 1149s # %e -> expected:  1 1149s # %e -> actual:  1 1149s # %_e -> expected: 1 1149s # %_e -> actual: 1 1149s # %-e -> expected: 1 1149s # %-e -> actual: 1 1149s # %0e -> expected: 01 1149s # %0e -> actual: 01 1149s # %e -> expected: 21 1149s # %e -> actual: 21 1149s # %_e -> expected: 21 1149s # %_e -> actual: 21 1149s # %-e -> expected: 21 1149s # %-e -> actual: 21 1149s # %0e -> expected: 21 1149s # %0e -> actual: 21 1149s # %a -> expected: Thu 1149s # %a -> actual: Thu 1149s # %^a -> expected: THU 1149s # %^a -> actual: THU 1149s # %#a -> expected: THU 1149s # %#a -> actual: THU 1149s # %A -> expected: Thursday 1149s # %A -> actual: Thursday 1149s # %^A -> expected: THURSDAY 1149s # %^A -> actual: THURSDAY 1149s # %#A -> expected: THURSDAY 1149s # %#A -> actual: THURSDAY 1149s # %b -> expected: Jan 1149s # %b -> actual: Jan 1149s # %^b -> expected: JAN 1149s # %^b -> actual: JAN 1149s # %#b -> expected: JAN 1149s # %#b -> actual: JAN 1149s # %B -> expected: January 1149s # %B -> actual: January 1149s # %^B -> expected: JANUARY 1149s # %^B -> actual: JANUARY 1149s # %#B -> expected: JANUARY 1149s # %#B -> actual: JANUARY 1149s # %h -> expected: Jan 1149s # %h -> actual: Jan 1149s # %^h -> expected: JAN 1149s # %^h -> actual: JAN 1149s # %#h -> expected: JAN 1149s # %#h -> actual: JAN 1149s # %Z -> expected: UTC 1149s # %Z -> actual: UTC 1149s # %^Z -> expected: UTC 1149s # %^Z -> actual: UTC 1149s # %#Z -> expected: utc 1149s # %#Z -> actual: utc 1149s # %H -> expected: 01 1149s # %H -> actual: 01 1149s # %_H -> expected: 1 1149s # %_H -> actual: 1 1149s # %-H -> expected: 1 1149s # %-H -> actual: 1 1149s # %0H -> expected: 01 1149s # %0H -> actual: 01 1149s # %H -> expected: 21 1149s # %H -> actual: 21 1149s # %_H -> expected: 21 1149s # %_H -> actual: 21 1149s # %-H -> expected: 21 1149s # %-H -> actual: 21 1149s # %0H -> expected: 21 1149s # %0H -> actual: 21 1149s # %I -> expected: 01 1149s # %I -> actual: 01 1149s # %_I -> expected: 1 1149s # %_I -> actual: 1 1149s # %-I -> expected: 1 1149s # %-I -> actual: 1 1149s # %0I -> expected: 01 1149s # %0I -> actual: 01 1149s # %I -> expected: 11 1149s # %I -> actual: 11 1149s # %_I -> expected: 11 1149s # %_I -> actual: 11 1149s # %-I -> expected: 11 1149s # %-I -> actual: 11 1149s # %0I -> expected: 11 1149s # %0I -> actual: 11 1149s # %k -> expected:  1 1149s # %k -> actual:  1 1149s # %_k -> expected: 1 1149s # %_k -> actual: 1 1149s # %-k -> expected: 1 1149s # %-k -> actual: 1 1149s # %0k -> expected: 01 1149s # %0k -> actual: 01 1149s # %l -> expected:  1 1149s # %l -> actual:  1 1149s # %_l -> expected: 1 1149s # %_l -> actual: 1 1149s # %-l -> expected: 1 1149s # %-l -> actual: 1 1149s # %0l -> expected: 01 1149s # %0l -> actual: 01 1149s # %l -> expected: 11 1149s # %l -> actual: 11 1149s # %_l -> expected: 11 1149s # %_l -> actual: 11 1149s # %-l -> expected: 11 1149s # %-l -> actual: 11 1149s # %0l -> expected: 11 1149s # %0l -> actual: 11 1149s # %p -> expected: AM 1149s # %p -> actual: AM 1149s # %^p -> expected: AM 1149s # %^p -> actual: AM 1149s # %#p -> expected: am 1149s # %#p -> actual: am 1149s # %P -> expected: am 1149s # %P -> actual: am 1149s # %^P -> expected: AM 1149s # %^P -> actual: AM 1149s # %#P -> expected: am 1149s # %#P -> actual: am 1149s # %OH -> expected: Û²Û³ 1149s # %OH -> actual: Û²Û³ 1149s # %OI -> expected: Û±Û± 1149s # %OI -> actual: Û±Û± 1149s # %OM -> expected: Û°Û° 1149s # %OM -> actual: Û°Û° 1149s # %Om -> expected: Û°Û· 1149s # %Om -> actual: Û°Û· 1149s # %0Om -> expected: Û°Û· 1149s # %0Om -> actual: Û°Û· 1149s # %-Om -> expected: Û· 1149s # %-Om -> actual: Û· 1149s # %_Om -> expected: Û· 1149s # %_Om -> actual: Û· 1149s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1149s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1149s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1149s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1149s # %C -> expected: 20 1149s # %C -> actual: 20 1149s # %EC -> expected: 20 1149s # %EC -> actual: 20 1149s # %x -> expected: 02/01/09 1149s # %x -> actual: 02/01/09 1149s # %Ex -> expected: 02/01/09 1149s # %Ex -> actual: 02/01/09 1149s # %X -> expected: 01:02:03 1149s # %X -> actual: 01:02:03 1149s # %EX -> expected: 01:02:03 1149s # %EX -> actual: 01:02:03 1149s # %y -> expected: 09 1149s # %y -> actual: 09 1149s # %Ey -> expected: 09 1149s # %Ey -> actual: 09 1149s # %Y -> expected: 2009 1149s # %Y -> actual: 2009 1149s # %EY -> expected: 2009 1149s # %EY -> actual: 2009 1149s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1149s # Bug Reference: http://bugzilla.gnome.org/749206 1149s # %B -> expected: January 1149s # %B -> actual: January 1149s # %OB -> expected: February 1149s # %OB -> actual: February 1149s # %b -> expected: Mar 1149s # %b -> actual: Mar 1149s # %Ob -> expected: Apr 1149s # %Ob -> actual: Apr 1149s # %h -> expected: May 1149s # %h -> actual: May 1149s # %Oh -> expected: Jun 1149s # %Oh -> actual: Jun 1149s # %B -> expected: Juli 1149s # %B -> actual: Juli 1149s # %OB -> expected: August 1149s # %OB -> actual: August 1149s # %b -> expected: Sep 1149s # %b -> actual: Sep 1149s # %Ob -> expected: Okt 1149s # %Ob -> actual: Okt 1149s # %h -> expected: Nov 1149s # %h -> actual: Nov 1149s # %Oh -> expected: Dez 1149s # %Oh -> actual: Dez 1149s # %B -> expected: enero 1149s # %B -> actual: enero 1149s # %OB -> expected: febrero 1149s # %OB -> actual: febrero 1149s # %b -> expected: mar 1149s # %b -> actual: mar 1149s # %Ob -> expected: abr 1149s # %Ob -> actual: abr 1149s # %h -> expected: may 1149s # %h -> actual: may 1149s # %Oh -> expected: jun 1149s # %Oh -> actual: jun 1149s # %B -> expected: juillet 1149s # %B -> actual: juillet 1149s # %OB -> expected: août 1149s # %OB -> actual: août 1149s # %b -> expected: sept. 1149s # %b -> actual: sept. 1149s # %Ob -> expected: oct. 1149s # %Ob -> actual: oct. 1149s # %h -> expected: nov. 1149s # %h -> actual: nov. 1149s # %Oh -> expected: déc. 1149s # %Oh -> actual: déc. 1149s # %B -> expected: ΙανουαÏίου 1149s # %B -> actual: ΙανουαÏίου 1149s # %B -> expected: ΦεβÏουαÏίου 1149s # %B -> actual: ΦεβÏουαÏίου 1149s # %B -> expected: ΜαÏτίου 1149s # %B -> actual: ΜαÏτίου 1149s # %OB -> expected: ΑπÏίλιος 1149s # %OB -> actual: ΑπÏίλιος 1149s # %OB -> expected: Μάιος 1149s # %OB -> actual: Μάιος 1149s # %OB -> expected: ΙοÏνιος 1149s # %OB -> actual: ΙοÏνιος 1149s # %b -> expected: Ιουλ 1149s # %b -> actual: Ιουλ 1149s # %Ob -> expected: ΑÏγ 1149s # %Ob -> actual: ΑÏγ 1149s # %B -> expected: svibnja 1149s # %B -> actual: svibnja 1149s # %B -> expected: lipnja 1149s # %B -> actual: lipnja 1149s # %B -> expected: srpnja 1149s # %B -> actual: srpnja 1149s # %OB -> expected: Kolovoz 1149s # %OB -> actual: kolovoz 1149s # %OB -> expected: Rujan 1149s # %OB -> actual: rujan 1149s # %OB -> expected: Listopad 1149s # %OB -> actual: listopad 1149s # %b -> expected: Stu 1149s # %b -> actual: stu 1149s # %Ob -> expected: Pro 1149s # %Ob -> actual: pro 1149s # %B -> expected: sausio 1149s # %B -> actual: sausio 1149s # %B -> expected: vasario 1149s # %B -> actual: vasario 1149s # %B -> expected: kovo 1149s # %B -> actual: kovo 1149s # %OB -> expected: balandis 1149s # %OB -> actual: balandis 1149s # %OB -> expected: gegužė 1149s # %OB -> actual: gegužė 1149s # %OB -> expected: birželis 1149s # %OB -> actual: birželis 1149s # %b -> expected: liep. 1149s # %b -> actual: liep. 1149s # %Ob -> expected: rugp. 1149s # %Ob -> actual: rugp. 1149s # %B -> expected: maja 1149s # %B -> actual: maja 1149s # %B -> expected: czerwca 1149s # %B -> actual: czerwca 1149s # %B -> expected: lipca 1149s # %B -> actual: lipca 1149s # %OB -> expected: sierpieÅ„ 1149s # %OB -> actual: sierpieÅ„ 1149s # %OB -> expected: wrzesieÅ„ 1149s # %OB -> actual: wrzesieÅ„ 1149s # %OB -> expected: październik 1149s # %OB -> actual: październik 1149s # %b -> expected: lis 1149s # %b -> actual: lis 1149s # %Ob -> expected: gru 1149s # %Ob -> actual: gru 1149s # %B -> expected: ÑÐ½Ð²Ð°Ñ€Ñ 1149s # %B -> actual: ÑÐ½Ð²Ð°Ñ€Ñ 1149s # %B -> expected: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1149s # %B -> actual: Ñ„ÐµÐ²Ñ€Ð°Ð»Ñ 1149s # %B -> expected: марта 1149s # %B -> actual: марта 1149s # %OB -> expected: Ðпрель 1149s # %OB -> actual: Ðпрель 1149s # %OB -> expected: Май 1149s # %OB -> actual: Май 1149s # %OB -> expected: Июнь 1149s # %OB -> actual: Июнь 1149s # %b -> expected: июл 1149s # %b -> actual: июл 1149s # %Ob -> expected: авг 1149s # %Ob -> actual: авг 1149s # %b -> expected: Ð¼Ð°Ñ 1149s # %b -> actual: Ð¼Ð°Ñ 1149s # %Ob -> expected: май 1149s # %Ob -> actual: май 1149s ok 38 /GDateTime/month_names 1149s ok 39 /GDateTime/to_local 1149s ok 40 /GDateTime/to_unix 1149s ok 41 /GDateTime/to_timeval 1149s ok 42 /GDateTime/to_utc 1149s ok 43 /GDateTime/now_utc 1149s ok 44 /GDateTime/dst 1149s # Bug Reference: http://bugzilla.gnome.org/642935 1149s ok 45 /GDateTime/test_z 1151s ok 46 /GDateTime/test-all-dates 1151s # slow test /GDateTime/test-all-dates executed in 1.67 secs 1151s ok 47 /GDateTime/unix_usec 1151s # Start of new_from_unix tests 1151s # Bug Reference: http://bugzilla.gnome.org/782089 1151s ok 48 /GDateTime/new_from_unix/overflow 1151s # End of new_from_unix tests 1151s # Start of new_from_timeval tests 1151s # Bug Reference: http://bugzilla.gnome.org/782089 1151s # Maximum supported GTimeVal.tv_sec = 2147483647 1151s ok 49 /GDateTime/new_from_timeval/overflow 1151s # End of new_from_timeval tests 1151s # Start of new_from_iso8601 tests 1151s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1151s # Vector 0: 1990-11-01T10:21:17Z 1151s # Vector 1: 19901101T102117Z 1151s # Vector 2: 1970-01-01T00:00:17.12Z 1151s # Vector 3: 1970-01-01T00:00:17.1234Z 1151s # Vector 4: 1970-01-01T00:00:17.123456Z 1151s # Vector 5: 1980-02-22T12:36:00+02:00 1151s # Vector 6: 1990-12-31T15:59:60-08:00 1151s # Vector 7: 1151s # Vector 8: x 1151s # Vector 9: 123x 1151s # Vector 10: 2001-10+x 1151s # Vector 11: 1980-02-22T 1151s # Vector 12: 2001-10-08Tx 1151s # Vector 13: 2001-10-08T10:11x 1151s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1151s # Vector 15: 1980-02-22T10:36:00Zulu 1151s # Vector 16: 2T0+819855292164632335 1151s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1151s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1151s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1151s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1151s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1151s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1151s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1151s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1151s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1151s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1151s # Vector 27: 20180803T140805.446178377+0100 1151s # Vector 28: 21474836480803T140805.446178377+0100 1151s # Vector 29: 20181303T140805.446178377+0100 1151s # Vector 30: 20180003T140805.446178377+0100 1151s # Vector 31: 20180800T140805.446178377+0100 1151s # Vector 32: 20180832T140805.446178377+0100 1151s # Vector 33: 20180803T240805.446178377+0100 1151s # Vector 34: 20180803T146005.446178377+0100 1151s # Vector 35: 20180803T140863.446178377+0100 1151s # Vector 36: 20180803T140805.446178377+10000 1151s # Vector 37: -0005-01-01T00:00:00Z 1151s # Vector 38: 2018-08-06 1151s # Vector 39: 20180803T140805,446178377+0100 1151s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1151s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1151s # Vector 42: 1990-11-01T10:21:17 1151s # Vector 43: 1719W462 407777-07 1151s # Vector 44: 4011090 260528Z 1151s # Vector 45: 0000W011 228214-22 1151s ok 50 /GDateTime/new_from_iso8601/2 1151s # End of new_from_iso8601 tests 1151s # Start of format_mixed tests 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1151s # %b -> expected: mar 1151s # %b -> actual: Mar 1151s # %B -> expected: march 1151s # %B -> actual: March 1151s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1151s # %b -> expected: mar 1151s # %b -> actual: Mar 1151s # %B -> expected: march 1151s # %B -> actual: March 1151s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1151s # %b -> expected: Mär 1151s # %b -> actual: Mär 1151s # %B -> expected: März 1151s # %B -> actual: März 1151s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1151s # %b -> expected: Mär 1151s # %b -> actual: Mär 1151s # %B -> expected: März 1151s # %B -> actual: März 1151s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1151s # End of format_mixed tests 1151s # Start of strftime tests 1151s # %r -> expected: (null) 1151s # %r -> actual: (null) 1151s ok 55 /GDateTime/strftime/error_handling 1151s # End of strftime tests 1151s # Start of eras tests 1151s # %Ec -> expected: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1151s # %Ec -> actual: 令和05å¹´06月01æ—¥ 00時00分00ç§’ 1151s # %EC -> expected: 令和 1151s # %EC -> actual: 令和 1151s # %Ex -> expected: 令和05å¹´06月01æ—¥ 1151s # %Ex -> actual: 令和05å¹´06月01æ—¥ 1151s # %EX -> expected: 00時00分00ç§’ 1151s # %EX -> actual: 00時00分00ç§’ 1151s # %Ey -> expected: 05 1151s # %Ey -> actual: 05 1151s # %EY -> expected: 令和05å¹´ 1151s # %EY -> actual: 令和05å¹´ 1151s # %Ec -> expected: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1151s # %Ec -> actual: å¹³æˆ31å¹´04月30æ—¥ 00時00分00ç§’ 1151s # %EC -> expected: å¹³æˆ 1151s # %EC -> actual: å¹³æˆ 1151s # %Ex -> expected: å¹³æˆ31å¹´04月30æ—¥ 1151s # %Ex -> actual: å¹³æˆ31å¹´04月30æ—¥ 1151s # %EX -> expected: 00時00分00ç§’ 1151s # %EX -> actual: 00時00分00ç§’ 1151s # %Ey -> expected: 31 1151s # %Ey -> actual: 31 1151s # %EY -> expected: å¹³æˆ31å¹´ 1151s # %EY -> actual: å¹³æˆ31å¹´ 1151s # %Ec -> expected: 昭和元年12月25æ—¥ 00時00分00ç§’ 1151s # %Ec -> actual: 昭和元年12月25æ—¥ 00時00分00ç§’ 1151s # %EC -> expected: 昭和 1151s # %EC -> actual: 昭和 1151s # %Ex -> expected: 昭和元年12月25æ—¥ 1151s # %Ex -> actual: 昭和元年12月25æ—¥ 1151s # %EX -> expected: 00時00分00ç§’ 1151s # %EX -> actual: 00時00分00ç§’ 1151s # %Ey -> expected: 01 1151s # %Ey -> actual: 01 1151s # %EY -> expected: 昭和元年 1151s # %EY -> actual: 昭和元年 1151s ok 56 /GDateTime/eras/japan 1151s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1151s # Vector 0: 1151s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1151s # 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å¹´ 1151s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Eyå¹´ 1151s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Eyå¹´ 1151s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 8: + 1151s # Vector 9: +: 1151s # Vector 10: +:: 1151s # Vector 11: +:200 1151s ok - glib/gdatetime.test 1151s # Running test: glib/mem-overflow.test 1151s ok - glib/mem-overflow.test 1151s # Running test: glib/object.test 1151s ok - glib/object.test 1151s # Running test: glib/portal-support-flatpak-none.test 1151s ok - glib/portal-support-flatpak-none.test 1151s # Vector 12: +:2nonsense 1151s # Vector 13: +:2nonsense: 1151s # Vector 14: +:2: 1151s # Vector 15: +:2:: 1151s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 18: +:2:2020:+*:令和:%EC%Eyå¹´ 1151s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Eyå¹´ 1151s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 22: +:2:2020/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Eyå¹´ 1151s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Eyå¹´ 1151s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Eyå¹´ 1151s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Eyå¹´ 1151s # Vector 28: +:2:2020/01/01 1151s # Vector 29: +:2:2020/01/01: 1151s # Vector 30: +:2:2020/01/01:: 1151s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Eyå¹´ 1151s # Vector 32: +:2:2020/01/01:+* 1151s # Vector 33: +:2:2020/01/01:+*: 1151s # Vector 34: +:2:2020/01/01:+*:: 1151s # Vector 35: +:2:2020/01/01:+*:令和 1151s # Vector 36: +:2:2020/01/01:+*:令和: 1151s # Vector 37: +:2:2020/01/01:+*:令和:; 1151s ok 58 /GDateTime/eras/parsing 1151s # End of eras tests 1151s # End of GDateTime tests 1151s # Start of GTimeZone tests 1151s ok 59 /GTimeZone/find-interval 1151s ok 60 /GTimeZone/adjust-time 1151s ok 61 /GTimeZone/no-header 1151s ok 62 /GTimeZone/no-header-identifier 1151s ok 63 /GTimeZone/posix-parse 1151s # Bug Reference: http://bugzilla.gnome.org/697715 1151s ok 64 /GTimeZone/floating-point 1151s # System time zone identifier: Etc/UTC 1151s ok 65 /GTimeZone/identifier 1151s # Vector 0: -158400 1151s # Vector 1: -10000 1151s # Vector 2: -3600 1151s # Vector 3: -61 1151s # Vector 4: -60 1151s # Vector 5: -59 1151s # Vector 6: 0 1151s # Vector 7: 59 1151s # Vector 8: 60 1151s # Vector 9: 61 1151s # Vector 10: 3600 1151s # Vector 11: 10000 1151s # Vector 12: 158400 1151s ok 66 /GTimeZone/new-offset 1151s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1151s ok 67 /GTimeZone/parse-rfc8536 1151s # /GTimeZone/caching summary: GTimeZone instances are cached 1151s ok 68 /GTimeZone/caching 1151s # End of GTimeZone tests 1151s TAP version 14 1151s # random seed: R02S11fed4c932ec565ddef5c63a5effa20b 1151s 1..2 1151s # Start of mem tests 1151s ok 1 /mem/overflow 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1151s ok 2 /mem/empty-alloc 1151s # Start of overflow tests 1151s # Start of subprocess tests 1151s # End of subprocess tests 1151s # End of overflow tests 1151s # Start of empty-alloc tests 1151s # End of empty-alloc tests 1151s # End of mem tests 1151s TAP version 14 1151s # random seed: R02S85c3e092f31a102ac44c44df4cc059f9 1151s 1..2 1151s # Start of object tests 1151s # Start of constructor tests 1151s ok 1 /object/constructor/singleton 1151s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1151s # End of constructor tests 1151s # End of object tests 1151s TAP version 14 1151s # random seed: R02Sed6d4b68398c591c99727ddd087d99f5 1151s 1..1 1151s # Start of portal-support tests 1151s # Start of flatpak tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/runtime 1151s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_PH6752/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1151s ok 1 /portal-support/flatpak/none 1151s # End of flatpak tests 1151s # End of portal-support tests 1151s # Running test: glib/defaultvalue.test 1151s TAP version 14 1151s # random seed: R02S8aa285ec0674af3715804f100d67389b 1151s 1..84 1151s # Start of Default Values tests 1151s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1151s ok 2 /Default Values/GAppLaunchContext 1151s ok 3 /Default Values/GApplicationCommandLine 1151s # skipping GApplication:is-remote 1151s ok 4 /Default Values/GApplication 1151s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1151s ok 6 /Default Values/GBindingGroup 1151s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1151s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1151s ok 9 /Default Values/GBytesIcon 1151s ok 10 /Default Values/GCancellable 1151s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1151s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1151s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1151s ok 14 /Default Values/GCredentials 1151s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1151s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1151s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1151s ok 18 /Default Values/GDBusAuthObserver 1151s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1151s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1151s ok 21 /Default Values/GDBusMessage 1151s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1151s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1151s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1151s ok 25 /Default Values/GDBusObjectProxy 1151s ok 26 /Default Values/GDBusObjectSkeleton 1151s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1151s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1151s ok 29 /Default Values/GEmblem 1151s ok 30 /Default Values/GEmblemedIcon 1151s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1151s ok 32 /Default Values/GFileInfo 1151s ok 33 /Default Values/GFileInputStream 1151s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1151s ok 35 /Default Values/GFileOutputStream 1151s ok 36 /Default Values/GFilenameCompleter 1151s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1151s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1151s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1151s ok - glib/defaultvalue.test 1151s # Running test: glib/simple-async-result.test 1151s ok - glib/simple-async-result.test 1151s # Running test: glib/singleton.test 1151s ok - glib/singleton.test 1151s # Running test: glib/gdbus-serialization.test 1151s ok - glib/gdbus-serialization.test 1151s # Running test: glib/error.test 1151s ok - glib/error.test 1151s # Running test: glib/vfs.test 1151s ok - glib/vfs.test 1151s # Running test: glib/hash.test 1151s ok - glib/hash.test 1151s # Running test: glib/repository.test 1151s ok 40 /Default Values/GInitiallyUnowned 1151s ok 41 /Default Values/GIOModule 1151s ok 42 /Default Values/GListStore 1151s ok 43 /Default Values/GMemoryInputStream 1151s ok 44 /Default Values/GMemoryOutputStream 1151s ok 45 /Default Values/GMenu 1151s ok 46 /Default Values/GMenuItem 1151s ok 47 /Default Values/GMountOperation 1151s ok 48 /Default Values/GNativeSocketAddress 1151s ok 49 /Default Values/GNetworkAddress 1151s ok 50 /Default Values/GNetworkService 1151s ok 51 /Default Values/GNotification 1151s ok 52 /Default Values/GObject 1151s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1151s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1151s # skipping GProxyAddressEnumerator:proxy-resolver 1151s ok 54 /Default Values/GProxyAddressEnumerator 1151s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1151s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1151s ok 57 /Default Values/GSignalGroup 1151s ok 58 /Default Values/GSimpleAction 1151s ok 59 /Default Values/GSimpleActionGroup 1151s ok 60 /Default Values/GSimpleAsyncResult 1151s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1151s ok 62 /Default Values/GSimplePermission 1151s ok 63 /Default Values/GSimpleProxyResolver 1151s # skipping GSocketClient:proxy-resolver 1151s ok 64 /Default Values/GSocketClient 1151s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1151s ok 66 /Default Values/GSocket # SKIP initialization failed 1151s ok 67 /Default Values/GSocketListener 1151s ok 68 /Default Values/GSocketService 1151s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1151s ok 70 /Default Values/GSubprocessLauncher 1151s # GLib-GIO-DEBUG: GTask 0x8d308c0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1151s ok 71 /Default Values/GTask 1151s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1151s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1151s ok 74 /Default Values/GTestDBus 1151s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1151s ok 76 /Default Values/GThreadedSocketService 1151s ok 77 /Default Values/GTlsInteraction 1151s ok 78 /Default Values/GTlsPassword 1151s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1151s ok 80 /Default Values/GUnixFDList 1151s ok 81 /Default Values/GVfs 1151s ok 82 /Default Values/GVolumeMonitor 1151s ok 83 /Default Values/GZlibCompressor 1151s ok 84 /Default Values/GZlibDecompressor 1151s # End of Default Values tests 1151s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1151s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1151s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1151s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1151s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1151s TAP version 14 1151s # random seed: R02Sd85981f8c94e2cd52615bbe743dd01fa 1151s 1..2 1151s # Start of gio tests 1151s # Start of simple-async-result tests 1151s ok 1 /gio/simple-async-result/test 1151s # GLib-GIO-DEBUG: GTask 0xf5e9fe0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1151s ok 2 /gio/simple-async-result/valid 1151s # End of simple-async-result tests 1151s # End of gio tests 1151s TAP version 14 1151s # random seed: R02S1f81c7d3f4684be9da82d22626946c76 1151s 1..2 1151s # Start of gobject tests 1151s # Start of singleton tests 1151s ok 1 /gobject/singleton/construction 1151s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1151s ok 2 /gobject/singleton/construct-property 1151s # End of singleton tests 1151s # End of gobject tests 1151s TAP version 14 1151s # random seed: R02S7c2a57ee13e4074a43490d5578024bfa 1151s 1..18 1151s # Start of gdbus tests 1151s # Start of message-serialize tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/basic/.dirs/runtime 1151s ok 1 /gdbus/message-serialize/basic 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/complex/.dirs/runtime 1151s ok 2 /gdbus/message-serialize/complex 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/invalid/.dirs/runtime 1151s ok 3 /gdbus/message-serialize/invalid 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/.dirs/runtime 1151s ok 4 /gdbus/message-serialize/header-checks 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/double-array/.dirs/runtime 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1151s ok 5 /gdbus/message-serialize/double-array 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/system-data2 1151s ok - glib/repository.test 1151s # Running test: glib/overflow.test 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/empty-structure/.dirs/runtime 1151s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1151s ok 6 /gdbus/message-serialize/empty-structure 1151s # Start of header-checks tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1151s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1151s ok 7 /gdbus/message-serialize/header-checks/valid 1151s # End of header-checks tests 1151s # End of message-serialize tests 1151s # Start of message-parse tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1151s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/non-signature-header/.dirs/runtime 1151s ok 9 /gdbus/message-parse/non-signature-header 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-signature-header/.dirs/runtime 1151s ok 10 /gdbus/message-parse/empty-signature-header 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1151s ok - glib/overflow.test 1151s # Running test: glib/objects-refcount1.test 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1151s ok 11 /gdbus/message-parse/multiple-signature-header 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1151s ok 12 /gdbus/message-parse/over-long-signature-header 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1151s ok 13 /gdbus/message-parse/deep-header-nesting 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1151s ok 14 /gdbus/message-parse/deep-body-nesting 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/truncated/.dirs/runtime 1151s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1151s ok 15 /gdbus/message-parse/truncated 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/empty-structure/.dirs/runtime 1151s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1151s ok 16 /gdbus/message-parse/empty-structure 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/missing-header/.dirs/runtime 1151s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1151s ok 17 /gdbus/message-parse/missing-header 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_VRC952/gdbus/message-parse/invalid-header-type/.dirs/runtime 1151s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1151s ok 18 /gdbus/message-parse/invalid-header-type 1151s # End of message-parse tests 1151s # End of gdbus tests 1151s TAP version 14 1151s # random seed: R02S7ca16428081caf13099e025f7f806b21 1151s 1..3 1151s # Start of error tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_C50852/error/from-errno/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_C50852/error/from-errno/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_C50852/error/from-errno/.dirs/system-config1:/tmp/test_error_C50852/error/from-errno/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_C50852/error/from-errno/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_C50852/error/from-errno/.dirs/system-data1:/tmp/test_error_C50852/error/from-errno/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_C50852/error/from-errno/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_C50852/error/from-errno/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_C50852/error/from-errno/.dirs/runtime 1151s ok 1 /error/from-errno 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_C50852/error/from-file-error/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_C50852/error/from-file-error/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_C50852/error/from-file-error/.dirs/system-config1:/tmp/test_error_C50852/error/from-file-error/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_C50852/error/from-file-error/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_C50852/error/from-file-error/.dirs/system-data1:/tmp/test_error_C50852/error/from-file-error/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_C50852/error/from-file-error/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_C50852/error/from-file-error/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_C50852/error/from-file-error/.dirs/runtime 1151s ok 2 /error/from-file-error 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_C50852/error/from-win32-error/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_C50852/error/from-win32-error/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_C50852/error/from-win32-error/.dirs/system-config1:/tmp/test_error_C50852/error/from-win32-error/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_C50852/error/from-win32-error/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_C50852/error/from-win32-error/.dirs/system-data1:/tmp/test_error_C50852/error/from-win32-error/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_C50852/error/from-win32-error/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_C50852/error/from-win32-error/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_C50852/error/from-win32-error/.dirs/runtime 1151s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1151s # End of error tests 1151s TAP version 14 1151s # random seed: R02S61d3a75650085d8c713e1cad14bb701e 1151s 1..3 1151s # Start of gvfs tests 1151s ok 1 /gvfs/local 1151s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1151s ok 2 /gvfs/register-scheme 1151s # Start of resource tests 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1151s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1151s ok 3 /gvfs/resource/malformed-escaping 1151s # End of resource tests 1151s # End of gvfs tests 1151s TAP version 14 1151s # random seed: R02S4a81c93bf9b783971331e47601cdd369 1151s 1..34 1151s # Start of hash tests 1151s ok 1 /hash/misc 1151s ok 2 /hash/one 1151s ok 3 /hash/honeyman 1151s ok 4 /hash/direct 1151s ok 5 /hash/direct2 1151s ok 6 /hash/int 1151s ok 7 /hash/int64 1151s ok 8 /hash/double 1151s ok 9 /hash/string 1151s ok 10 /hash/set 1151s ok 11 /hash/set-ref 1151s ok 12 /hash/ref 1151s ok 13 /hash/remove-all 1151s ok 14 /hash/recursive-remove-all 1151s ok 15 /hash/find 1151s ok 16 /hash/foreach 1151s ok 17 /hash/foreach-steal 1151s ok 18 /hash/steal-extended 1151s ok 19 /hash/steal-all-keys 1151s ok 20 /hash/steal-all-values 1151s ok 21 /hash/lookup-extended 1151s ok 22 /hash/new-similar 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1151s ok 23 /hash/lookup-null-key 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1151s ok 24 /hash/destroy-modify 1151s ok 25 /hash/consistency 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1151s ok 26 /hash/iter-replace 1151s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1151s ok 27 /hash/set-insert-corruption 1151s ok 28 /hash/set-to-strv 1151s ok 29 /hash/get-keys-as-ptr-array 1151s ok 30 /hash/get-values-as-ptr-array 1151s ok 31 /hash/primes 1151s # Start of int64 tests 1151s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1151s ok 32 /hash/int64/collisions 1151s # End of int64 tests 1151s # Start of double tests 1151s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1151s ok 33 /hash/double/collisions 1151s # End of double tests 1151s # Start of recursive-remove-all tests 1151s # End of recursive-remove-all tests 1151s # Start of steal-extended tests 1151s ok 34 /hash/steal-extended/optional 1151s # End of steal-extended tests 1151s # End of hash tests 1151s TAP version 14 1151s # random seed: R02S725bbd05b8e0ce461d5c0d8eb9ddd477 1151s 1..23 1151s # Start of repository tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/basic/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/basic/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/basic/.dirs/system-config1:/tmp/test_repository_YKL952/repository/basic/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/basic/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/basic/.dirs/system-data1:/tmp/test_repository_YKL952/repository/basic/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/basic/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/basic/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/basic/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1151s ok 1 /repository/basic 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/info/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/info/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/info/.dirs/system-config1:/tmp/test_repository_YKL952/repository/info/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/info/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/info/.dirs/system-data1:/tmp/test_repository_YKL952/repository/info/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/info/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/info/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/info/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1151s ok 2 /repository/info 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/dependencies/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/dependencies/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/dependencies/.dirs/system-config1:/tmp/test_repository_YKL952/repository/dependencies/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/dependencies/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/dependencies/.dirs/system-data1:/tmp/test_repository_YKL952/repository/dependencies/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/dependencies/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/dependencies/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/dependencies/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1151s ok 3 /repository/dependencies 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/arg-info/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/arg-info/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/arg-info/.dirs/system-config1:/tmp/test_repository_YKL952/repository/arg-info/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/arg-info/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/arg-info/.dirs/system-data1:/tmp/test_repository_YKL952/repository/arg-info/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/arg-info/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/arg-info/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/arg-info/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1151s ok 4 /repository/arg-info 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/callable-info/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/callable-info/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/callable-info/.dirs/system-config1:/tmp/test_repository_YKL952/repository/callable-info/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/callable-info/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/callable-info/.dirs/system-data1:/tmp/test_repository_YKL952/repository/callable-info/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/callable-info/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/callable-info/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/callable-info/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1151s ok 5 /repository/callable-info 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/callback-info/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/callback-info/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/callback-info/.dirs/system-config1:/tmp/test_repository_YKL952/repository/callback-info/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/callback-info/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/callback-info/.dirs/system-data1:/tmp/test_repository_YKL952/repository/callback-info/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/callback-info/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/callback-info/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/callback-info/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1151s ok 6 /repository/callback-info 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/char-types/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/char-types/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/char-types/.dirs/system-config1:/tmp/test_repository_YKL952/repository/char-types/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/char-types/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/char-types/.dirs/system-data1:/tmp/test_repository_YKL952/repository/char-types/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/char-types/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/char-types/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/char-types/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1151s ok 7 /repository/char-types 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/constructor-return-type/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1151s ok 8 /repository/constructor-return-type 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/enum-info-c-identifier/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1151s ok 9 /repository/enum-info-c-identifier 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/enum-info-static-methods/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/enum-info-static-methods summary: Test an enum with methods 1151s ok 10 /repository/enum-info-static-methods 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/error-quark/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/error-quark/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/error-quark/.dirs/system-config1:/tmp/test_repository_YKL952/repository/error-quark/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/error-quark/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/error-quark/.dirs/system-data1:/tmp/test_repository_YKL952/repository/error-quark/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/error-quark/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/error-quark/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/error-quark/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/error-quark summary: Test finding an error quark by error domain 1151s ok 11 /repository/error-quark 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/flags-info-c-identifier/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1151s ok 12 /repository/flags-info-c-identifier 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/fundamental-ref-func/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1151s ok 13 /repository/fundamental-ref-func 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/instance-method-ownership-transfer/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1151s ok 14 /repository/instance-method-ownership-transfer 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/object-gtype-interfaces/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1151s ok 15 /repository/object-gtype-interfaces 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/signal-info-with-array-length-arg/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1151s ok 16 /repository/signal-info-with-array-length-arg 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_YKL952/repository/type-info-name/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_YKL952/repository/type-info-name/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/type-info-name/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1151s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1151s ok 17 /repository/type-info-name 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/vfunc-info-with-no-invoker/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1151s ok 18 /repository/vfunc-info-with-no-invoker 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1151s ok 19 /repository/vfunc-info-with-invoker-on-interface 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1151s ok 20 /repository/vfunc-info-with-invoker-on-object 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/find-by-gtype/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/find-by-gtype summary: Test finding a GType 1151s ok 21 /repository/find-by-gtype 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/loaded-namespaces/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1151s ok 22 /repository/loaded-namespaces 1151s # Start of base-info tests 1151s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/home 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/cache 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_YKL952/repository/base-info/clear/.dirs/system-config2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/config 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_YKL952/repository/base-info/clear/.dirs/system-data2 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/data 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/state 1151s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_YKL952/repository/base-info/clear/.dirs/runtime 1151s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1151s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1151s ok 23 /repository/base-info/clear 1151s # End of base-info tests 1151s # End of repository tests 1151s TAP version 14 1151s # random seed: R02Sb309dd5d7176f1fc895666c86b27e1ac 1151s 1..6 1151s # Start of glib tests 1151s # Start of checked-math tests 1151s ok 1 /glib/checked-math/guint-add 1151s ok 2 /glib/checked-math/guint-mul 1151s ok 3 /glib/checked-math/guint64-add 1151s ok 4 /glib/checked-math/guint64-mul 1151s ok 5 /glib/checked-math/gsize-add 1151s ok 6 /glib/checked-math/gsize-mul 1151s # End of checked-math tests 1151s # End of glib tests 1151s TAP version 14 1151s # random seed: R02S269763f1d494b7746fd8799563e2b86a 1151s 1..1 1151s # Start of gobject tests 1151s # Start of refcount tests 1151s # init 0x6c7f158 1151s # 1151s # init 0x6c7f270 1151s # 1157s # Executing: glib/objects-refcount1.test 1157s # dispose 0x6c7f158! 1157s # 1157s # dispose 0x6c7f270! 1157s # 1157s ok 1 /gobject/refcount/object-basics 1157s # slow test /gobject/refcount/object-basics executed in 5.01 secs 1157s # End of refcount tests 1157s # End of gobject tests 1157s ok - glib/objects-refcount1.test 1157s # Running test: glib/function-info.test 1157s ok - glib/function-info.test 1157s # Running test: glib/logging.test 1157s TAP version 14 1157s # random seed: R02S7a8799c4b4b7ef27169e261d2ce94b81 1157s 1..1 1157s # Start of function-info tests 1157s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/home 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/cache 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_BMET52/function-info/invoker/.dirs/system-config2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/config 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_BMET52/function-info/invoker/.dirs/system-data2 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/data 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/state 1157s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_BMET52/function-info/invoker/.dirs/runtime 1157s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1157s # /function-info/invoker summary: Test preparing a function invoker 1157s ok 1 /function-info/invoker 1157s # End of function-info tests 1157s TAP version 14 1157s # random seed: R02S027c140a3aef6fc79f9c420ce3401177 1157s 1..17 1157s # Start of logging tests 1157s ok 1 /logging/default-handler 1157s # slow test /logging/default-handler executed in 0.84 secs 1157s ok 2 /logging/warnings 1157s ok 3 /logging/fatal-log-mask 1157s # bu-DEBUG: message 1157s # ba-DEBUG: message 1157s # ba-INFO: message 1157s ok 4 /logging/set-handler 1157s ok 5 /logging/print-handler 1157s ok 6 /logging/printerr-handler 1157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=653052 1157s # The Log Message Handler 1157s # 1157s # The Good Fail Message Handler 1157s # 1157s ok 7 /logging/653052 1157s ok 8 /logging/gibberish 1157s # Start of default-handler tests 1157s # Start of subprocess tests 1157s # End of subprocess tests 1157s # End of default-handler tests 1157s # End of logging tests 1157s # Start of structured-logging tests 1157s ok 9 /structured-logging/no-state 1157s ok 10 /structured-logging/some-state 1157s ok 11 /structured-logging/robustness 1157s ok 12 /structured-logging/roundtrip1 1157s ok 13 /structured-logging/roundtrip2 1157s ok - glib/logging.test 1157s # Running test: glib/atomic-c-11.test 1157s ok 14 /structured-logging/roundtrip3 1157s ok 15 /structured-logging/variant1 1157s ok 16 /structured-logging/variant2 1157s ok 17 /structured-logging/set-writer-func-twice 1157s # End of structured-logging tests 1157s TAP version 14 1157s # random seed: R02S3473372bee10f62fcdcdb583a4e30a1d 1157s 1..2 1157s # Start of atomic tests 1157s ok 1 /atomic/types 1157s ok 2 /atomic/threaded 1157s # End of atomic tests 1157s ok - glib/atomic-c-11.test 1157s # Running test: glib/list.test 1157s TAP version 14 1157s # random seed: R02Se617ba78da58fd7a31bc58797dab2609 1157s 1..20 1157s # Start of list tests 1157s ok 1 /list/sort 1157s ok 2 /list/sort-with-data 1157s ok 3 /list/insert-before-link 1157s ok 4 /list/insert-sorted 1157s ok 5 /list/insert-sorted-with-data 1157s ok 6 /list/reverse 1157s ok 7 /list/nth 1157s ok 8 /list/concat 1157s ok 9 /list/remove 1157s ok 10 /list/remove-all 1157s ok 11 /list/first-last 1157s ok 12 /list/insert 1157s ok 13 /list/free-full 1157s ok 14 /list/copy 1157s ok 15 /list/copy-deep 1157s ok 16 /list/delete-link 1157s ok 17 /list/prepend 1157s ok 18 /list/position 1157s ok - glib/list.test 1157s ok 19 /list/double-free 1157s # Start of sort tests 1157s ok 20 /list/sort/stable 1157s # End of sort tests 1157s # End of list tests 1157s # Running test: glib/strfuncs.test 1157s TAP version 14 1157s # random seed: R02Sa7d42f2f17194bcb249c0f10b94e8181 1157s 1..51 1157s # Start of strfuncs tests 1157s ok 1 /strfuncs/ascii-strcasecmp 1157s ok 2 /strfuncs/ascii_strdown 1157s ok 3 /strfuncs/ascii_strdup 1157s ok 4 /strfuncs/ascii_strtod 1157s ok 5 /strfuncs/bounds-check 1157s ok 6 /strfuncs/has-prefix 1157s ok 7 /strfuncs/has-prefix-macro 1157s ok 8 /strfuncs/has-suffix 1157s ok 9 /strfuncs/has-suffix-macro 1157s ok 10 /strfuncs/memdup 1157s ok 11 /strfuncs/memdup2 1157s ok 12 /strfuncs/set_str 1157s ok 13 /strfuncs/stpcpy 1157s ok 14 /strfuncs/str_match_string 1157s ok 15 /strfuncs/str_tokenize_and_fold 1157s ok 16 /strfuncs/strcanon 1157s ok - glib/strfuncs.test 1157s # Running test: glib/completion.test 1157s ok - glib/completion.test 1157s # Running test: glib/refcount.test 1157s ok - glib/refcount.test 1157s ok 17 /strfuncs/strchomp 1157s ok 18 /strfuncs/strchug 1157s ok 19 /strfuncs/strcompress-strescape 1157s ok 20 /strfuncs/strconcat 1157s ok 21 /strfuncs/strdelimit 1157s ok 22 /strfuncs/strdup 1157s ok 23 /strfuncs/strdup-printf 1157s ok 24 /strfuncs/strdupv 1157s ok 25 /strfuncs/strerror 1157s ok 26 /strfuncs/strip-context 1157s ok 27 /strfuncs/strjoin 1157s ok 28 /strfuncs/strjoinv 1157s ok 29 /strfuncs/strlcat 1157s ok 30 /strfuncs/strlcpy 1157s ok 31 /strfuncs/strncasecmp 1157s ok 32 /strfuncs/strndup 1157s ok 33 /strfuncs/strnfill 1157s ok 34 /strfuncs/strreverse 1157s ok 35 /strfuncs/strsignal 1157s ok 36 /strfuncs/strsplit 1157s ok 37 /strfuncs/strsplit-set 1157s ok 38 /strfuncs/strstr 1157s ok 39 /strfuncs/strtod 1157s ok 40 /strfuncs/strtoull-strtoll 1157s ok 41 /strfuncs/strup 1157s ok 42 /strfuncs/strv-contains 1157s ok 43 /strfuncs/strv-equal 1157s ok 44 /strfuncs/strv-length 1157s ok 45 /strfuncs/test-is-to-digit 1157s ok 46 /strfuncs/transliteration 1157s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1157s ok 47 /strfuncs/str-equal 1157s ok 48 /strfuncs/str-is-ascii 1157s # Start of ascii-string-to-num tests 1157s ok 49 /strfuncs/ascii-string-to-num/pathological 1157s ok 50 /strfuncs/ascii-string-to-num/usual 1157s # End of ascii-string-to-num tests 1157s # Start of strdup tests 1157s ok 51 /strfuncs/strdup/inline 1157s # End of strdup tests 1157s # End of strfuncs tests 1157s TAP version 14 1157s # random seed: R02Sd939173a8a172cd6c85cf9d22131ad62 1157s 1..1 1157s # Start of completion tests 1157s ok 1 /completion/test-completion 1157s # End of completion tests 1157s TAP version 14 1157s # random seed: R02S264f509751dbfc2ef489dc45c6ed8117 1157s 1..4 1157s # Start of refcount tests 1157s ok 1 /refcount/grefcount 1157s ok 2 /refcount/gatomicrefcount 1157s # Start of grefcount tests 1157s ok 3 /refcount/grefcount/saturation 1157s # End of grefcount tests 1157s # Start of gatomicrefcount tests 1157s ok 4 /refcount/gatomicrefcount/saturation 1157s # End of gatomicrefcount tests 1157s # End of refcount tests 1157s # Running test: glib/credentials.test 1157s ok - glib/credentials.test 1157s # Running test: glib/utf8-performance.test 1157s ok - glib/utf8-performance.test 1157s # Running test: glib/utils-c-99.test 1157s ok - glib/utils-c-99.test 1157s # Running test: glib/fdo-notification-backend.test 1157s TAP version 14 1157s # random seed: R02Scbf5a582fe4dec32d0c173c0e6aa7b85 1157s 1..1 1157s # Start of credentials tests 1157s # GCredentials:linux-ucred:pid=12156,uid=1000,gid=1000 1157s # GCredentials:linux-ucred:pid=12156,uid=0,gid=1000 1157s ok 1 /credentials/basic 1157s # End of credentials tests 1157s TAP version 14 1157s # random seed: R02Sc293eb112ec5dd49473293b8b04ea8f1 1157s 1..36 1157s # Start of utf8 tests 1157s # Start of perf tests 1157s # Start of get_char tests 1157s # max perf: 8.6 MB/s 1157s ok 1 /utf8/perf/get_char/ascii 1157s # max perf: inf MB/s 1157s ok 2 /utf8/perf/get_char/latin1 1157s # max perf: 160.0 MB/s 1157s ok 3 /utf8/perf/get_char/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 4 /utf8/perf/get_char/han 1157s # End of get_char tests 1157s # Start of get_char-backwards tests 1157s # max perf: inf MB/s 1157s ok 5 /utf8/perf/get_char-backwards/ascii 1157s # max perf: inf MB/s 1157s ok 6 /utf8/perf/get_char-backwards/latin1 1157s # max perf: 160.0 MB/s 1157s ok 7 /utf8/perf/get_char-backwards/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 8 /utf8/perf/get_char-backwards/han 1157s # End of get_char-backwards tests 1157s # Start of get_char_validated tests 1157s # max perf: 43.0 MB/s 1157s ok 9 /utf8/perf/get_char_validated/ascii 1157s # max perf: inf MB/s 1157s ok 10 /utf8/perf/get_char_validated/latin1 1157s # max perf: 160.0 MB/s 1157s ok 11 /utf8/perf/get_char_validated/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 12 /utf8/perf/get_char_validated/han 1157s # End of get_char_validated tests 1157s # Start of utf8_to_ucs4 tests 1157s # max perf: 43.0 MB/s 1157s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1157s # max perf: 67.0 MB/s 1157s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1157s # max perf: 160.0 MB/s 1157s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 16 /utf8/perf/utf8_to_ucs4/han 1157s # End of utf8_to_ucs4 tests 1157s # Start of utf8_to_ucs4-sized tests 1157s # max perf: 43.0 MB/s 1157s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1157s # max perf: 67.0 MB/s 1157s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1157s # max perf: 160.0 MB/s 1157s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1157s # End of utf8_to_ucs4-sized tests 1157s # Start of utf8_to_ucs4_fast tests 1157s # max perf: 43.0 MB/s 1157s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1157s # max perf: inf MB/s 1157s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1157s # max perf: 160.0 MB/s 1157s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1157s # End of utf8_to_ucs4_fast tests 1157s # Start of utf8_to_ucs4_fast-sized tests 1157s # max perf: inf MB/s 1157s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1157s # max perf: 67.0 MB/s 1157s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1157s # max perf: 160.0 MB/s 1157s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1157s # max perf: inf MB/s 1157s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1157s # End of utf8_to_ucs4_fast-sized tests 1157s # Start of utf8_validate tests 1157s # max perf: inf MB/s 1157s ok 29 /utf8/perf/utf8_validate/ascii 1157s # max perf: 67.0 MB/s 1157s ok 30 /utf8/perf/utf8_validate/latin1 1157s # max perf: 160.0 MB/s 1157s ok 31 /utf8/perf/utf8_validate/cyrillic 1157s # max perf: 156.0 MB/s 1157s ok 32 /utf8/perf/utf8_validate/han 1157s # End of utf8_validate tests 1157s # Start of utf8_validate-sized tests 1157s # max perf: inf MB/s 1157s ok 33 /utf8/perf/utf8_validate-sized/ascii 1157s # max perf: inf MB/s 1157s ok 34 /utf8/perf/utf8_validate-sized/latin1 1157s # max perf: 160.0 MB/s 1157s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1157s # max perf: inf MB/s 1157s ok 36 /utf8/perf/utf8_validate-sized/han 1157s # End of utf8_validate-sized tests 1157s # End of perf tests 1157s # End of utf8 tests 1157s TAP version 14 1157s # random seed: R02S187b9dc745ba6f00c11295b27045e494 1157s 1..41 1157s # Start of utils tests 1157s ok 1 /utils/language-names 1157s ok 2 /utils/locale-variants 1157s ok 3 /utils/version 1157s ok 4 /utils/appname 1157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1157s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1157s ok 5 /utils/prgname-thread-safety 1157s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1157s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1157s ok 6 /utils/tmpdir 1157s ok 7 /utils/basic_bits 1157s ok 8 /utils/bits 1157s ok 9 /utils/swap 1157s ok 10 /utils/find-program 1157s ok 11 /utils/find-program-for-path 1157s ok 12 /utils/debug 1157s ok 13 /utils/codeset 1157s ok 14 /utils/codeset2 1157s ok 15 /utils/console-charset 1157s ok 16 /utils/gettext 1157s ok 17 /utils/username 1157s ok 18 /utils/realname 1157s ok 19 /utils/hostname 1157s ok 20 /utils/xdgdirs 1157s ok 21 /utils/specialdir 1157s # NAME: Ubuntu 1157s ok 22 /utils/os-info 1157s ok 23 /utils/clear-pointer 1157s ok 24 /utils/clear-pointer-cast 1157s ok 25 /utils/take-pointer 1157s ok 26 /utils/clear-source 1157s ok 27 /utils/misc-mem 1157s # /utils/aligned-mem summary: Aligned memory allocator 1157s # Alignment must not be zero 1157s # Alignment must be a power of two 1157s # Alignment must be a multiple of sizeof(void*) 1157s ok 28 /utils/aligned-mem 1157s # /utils/free-sized summary: Check that g_free_sized() works 1157s ok 29 /utils/free-sized 1157s ok 30 /utils/nullify 1157s ok 31 /utils/atexit 1157s ok 32 /utils/check-setuid 1157s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1157s ok 33 /utils/int-limits 1157s ok 34 /utils/clear-list 1157s ok 35 /utils/clear-slist 1157s ok 36 /utils/steal-handle-id 1157s # Start of specialdir tests 1157s ok 37 /utils/specialdir/desktop 1157s # End of specialdir tests 1157s # Start of clear-pointer tests 1157s ok 38 /utils/clear-pointer/side-effects 1157s # End of clear-pointer tests 1157s # Start of aligned-mem tests 1157s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1157s ok 39 /utils/aligned-mem/alignment 1157s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1157s ok 40 /utils/aligned-mem/zeroed 1157s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1157s ok 41 /utils/aligned-mem/free-sized 1157s # Start of subprocess tests 1157s # End of subprocess tests 1157s # End of aligned-mem tests 1157s # End of utils tests 1157s TAP version 14 1157s # random seed: R02S2b4ce6a7d0726f042d32c1d89c541173 1157s 1..2 1157s # Start of fdo-notification-backend tests 1157s # Test constructing a GFdoNotificationBackend 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s ok 1 /fdo-notification-backend/construction 1157s # Start of dbus tests 1157s # /fdo-notification-backend/dbus/activate-action summary: Test how the backend handles valid and invalid ActionInvoked signals from the daemon 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1157s ok 2 /fdo-notification-backend/dbus/activate-action 1157s # End of dbus tests 1157s # End of fdo-notification-backend tests 1157s ok - glib/fdo-notification-backend.test 1157s # Running test: glib/dynamictests.test 1157s TAP version 14 1157s # random seed: R02S9eb87406143a6d4fcc502a74773ebb80 1157s 1..2 1157s # Start of GObject tests 1157s ok - glib/dynamictests.test 1157s ok 1 /GObject/threaded-dynamic-ref-unref-init 1157s ok 2 /GObject/dynamic-interface-properties 1157s # End of GObject tests 1157s # Running test: glib/gmenumodel.test 1157s TAP version 14 1157s # random seed: R02S3609d6d3e4ab957217ea69dabfa1fab6 1157s 1..15 1157s # Start of gmenu tests 1158s # Executing: glib/gmenumodel.test 1158s ok 1 /gmenu/equality 1158s # slow test /gmenu/equality executed in 0.85 secs 1159s ok 2 /gmenu/random 1159s # slow test /gmenu/random executed in 0.93 secs 1159s ok 3 /gmenu/attributes 1159s ok 4 /gmenu/links 1159s ok 5 /gmenu/mutable 1159s ok 6 /gmenu/convenience 1159s ok 7 /gmenu/menuitem 1159s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1159s ok 8 /gmenu/input-validation 1159s # Start of dbus tests 1160s ok 9 /gmenu/dbus/roundtrip 1160s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1161s ok 10 /gmenu/dbus/subscriptions 1169s ok 11 /gmenu/dbus/threaded 1169s # slow test /gmenu/dbus/threaded executed in 1.33 secs 1169s # Start of peer tests 1169s # Executing: glib/gmenumodel.test 1169s ok 12 /gmenu/dbus/peer/roundtrip 1169s # slow test /gmenu/dbus/peer/roundtrip executed in 1.02 secs 1169s ok 13 /gmenu/dbus/peer/subscriptions 1169s # End of peer tests 1169s # Start of export tests 1169s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1169s ok 14 /gmenu/dbus/export/error-handling 1169s # End of export tests 1169s # End of dbus tests 1169s # Start of attributes tests 1169s ok 15 /gmenu/attributes/iterate 1169s # End of attributes tests 1169s # End of gmenu tests 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s TAP version 14 1169s # random seed: R02Sa77640089d81da4f85e4befad03fd661 1169s 1..2 1169s # Start of gdbus tests 1169s # Start of connection tests 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/flush/.dirs/runtime 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 1 /gdbus/connection/flush 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_FPYR52/gdbus/connection/large_message/.dirs/runtime 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 2 /gdbus/connection/large_message 1169s # End of connection tests 1169s # End of gdbus tests 1169s TAP version 14 1169s # random seed: R02S06cbbb0a359ba1a5a81703893a056651 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 # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_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 TAP version 14 1169s # random seed: R02S0d7d35e96d7aeaf81c64bd373c8e3e10 1169s 1..2 1169s # Start of converter tests 1169s ok 1 /converter/bytes 1169s ok 2 /converter/extra-bytes-at-end 1169s # End of converter tests 1169s TAP version 13 1169s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpxic3t3mu 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1169s # Return code: 0 1169s # Output: 1169s # Usage: 1169s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1169s # 1169s # Help Options: 1169s # -h, --help Show help options 1169s # 1169s # Application Options: 1169s # --typelib-version=VERSION Typelib version to inspect 1169s # --print-shlibs List the shared libraries the typelib requires 1169s # --print-typelibs List other typelibs the inspected typelib requires 1169s # Error: 1169s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmp9rlwwcd5 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1169s # Return code: 1 1169s # Output: 1169s # 1169s # Error: 1169s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1169s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpijbbm728 1169s # Running: ['/usr/bin/gi-inspect-typelib'] 1169s # Return code: 1 1169s # Output: 1169s # 1169s # Error: 1169s # Please specify exactly one namespace 1169s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpwwyyerl7 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # shlib: libgobject-2.0.so.0 1169s # shlib: libglib-2.0.so.0 1169s # Error: 1169s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpdvotbp9x 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # 1169s # Error: 1169s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpejj1qv8h 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # shlib: libgobject-2.0.so.0 1169s # shlib: libglib-2.0.so.0 1169s # Error: 1169s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmp_eit20xv 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # shlib: libgobject-2.0.so.0 1169s # Error: 1169s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpryvhctr1 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # typelib: GLib-2.0 1169s # Error: 1169s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmp1odx_afn 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # shlib: libgobject-2.0.so.0 1169s # typelib: GLib-2.0 1169s # Error: 1169s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpiigkhzc5 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # shlib: libgio-2.0.so.0 1169s # Error: 1169s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmpucpl4v0a 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # typelib: GObject-2.0 1169s # typelib: GLib-2.0 1169s # typelib: GModule-2.0 1169s # Error: 1169s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1169s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1169s # tmpdir: /tmp/tmp5fz7lrp_ 1169s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1169s # Return code: 0 1169s # Output: 1169s # shlib: libgio-2.0.so.0 1169s # typelib: GObject-2.0 1169s # typelib: GLib-2.0 1169s # typelib: GModule-2.0 1169s # Error: 1169s 1..12 1169s TAP version 14 1169s # random seed: R02S8fd299fdf9baf52c0d4fc81e793102a1 1169s 1..9 1169s # Start of gthread tests 1169s ok 1 /gthread/spawn-single-sync 1169s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1169s ok 2 /gthread/spawn-stderr-socket 1169s ok 3 /gthread/spawn-single-async 1169s # thread 1 1169s # thread 1 1169s ok 4 /gthread/spawn-single-async-with-fds 1169s ok 5 /gthread/spawn-async-with-invalid-fds 1169s ok 6 /gthread/spawn-script 1169s ok 7 /gthread/spawn-posix-spawn 1169s # Start of spawn tests 1169s ok 8 /gthread/spawn/nonexistent 1169s # FD map: 1169s # • 5 → 15 1169s # • 6 → 16 1169s # • 7 → 17 1169s # • 8 → 18 1169s # • 9 → 19 1169s # • 10 → 20 1169s # • 11 → 21 1169s # • 12 → 22 1169s # • 13 → 23 1169s # • 3 → 13 1169s ok 9 /gthread/spawn/fd-assignment-clash 1169s # End of spawn tests 1169s # End of gthread tests 1169s TAP version 14 1169s # random seed: R02Sa1c10bd85737d098b182d30ccc8d900f 1169s 1..7 1169s # Start of thread tests 1169s ok 1 /thread/thread1 1169s ok 2 /thread/thread2 1169s ok 3 /thread/thread3 1169s ok 4 /thread/thread4 1169s ok 5 /thread/thread5 1169s ok 6 /thread/thread6 1169s ok 7 /thread/thread7 1169s # End of thread tests 1169s TAP version 14 1169s # random seed: R02S72c14e99cd7027dc241b1097f63f1410 1169s 1..13 1169s # Start of actions tests 1169s ok 1 /actions/basic 1169s ok 2 /actions/name 1169s ok 3 /actions/simplegroup 1169s ok 4 /actions/stateful 1169s ok 5 /actions/default-activate 1169s ok 6 /actions/entries 1169s ok 7 /actions/parse-detailed 1169s ok 8 /actions/property 1169s ok 9 /actions/no-properties 1169s # Start of dbus tests 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 10 /actions/dbus/export 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 11 /actions/dbus/threaded 1169s # slow test /actions/dbus/threaded executed in 2.64 secs 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 12 /actions/dbus/bug679509 1169s # Start of export tests 1169s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 13 /actions/dbus/export/error-handling 1169s # End of export tests 1169s # End of dbus tests 1169s # End of actions tests 1169s TAP version 14 1169s # random seed: R02Sa2b5a6654faaebcb4ee10af268697011 1169s 1..2 1169s # Start of properties tests 1169s # Start of custom-dispatch tests 1169s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1169s ok 1 /properties/custom-dispatch/init 1169s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1169s ok 2 /properties/custom-dispatch/set 1169s # End of custom-dispatch tests 1169s # End of properties tests 1169s TAP version 14 1169s # random seed: R02Sc158c71df7cf49cd2fbb11efdd32bdd6 1169s 1..2 1169s # Start of atomic tests 1169s ok 1 /atomic/types 1169s ok 2 /atomic/threaded 1169s # End of atomic tests 1169s TAP version 14 1169s # random seed: R02Saaa747e2f4db350255b53b5a3564f998 1169s 1..1 1169s # Start of assert tests 1169s ok 1 /assert/finalize_object 1169s # Start of finalize_object tests 1169s # Start of subprocess tests 1169s # End of subprocess tests 1169s # End of finalize_object tests 1169s # End of assert tests 1169s TAP version 14 1169s # random seed: R02Saeb2736cf6a61190f5977143039faaf0 1169s 1..2 1169s # Start of gtask tests 1169s # 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. 1169s ok 1 /gtask/name 1169s # Start of name tests 1169s # 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. 1169s ok 2 /gtask/name/macro-wrapper 1169s # End of name tests 1169s # End of gtask tests 1169s TAP version 14 1169s # random seed: R02S760aeb89f6984b3ef10b2a50bbdba570 1169s 1..1 1169s # Start of gdbus tests 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_CI4V52/gdbus/proxy-well-known-name/.dirs/runtime 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1169s ok 1 /gdbus/proxy-well-known-name 1169s # End of gdbus tests 1169s TAP version 14 1169s # random seed: R02S856c95cbec26b6fd484fc4cb0b58de2e 1169s 1..31 1169s # Start of gobject tests 1169s # Start of signals tests 1169s ok 1 /gobject/signals/all-types 1169s ok 2 /gobject/signals/variant 1169s ok 3 /gobject/signals/destroy-target-object 1169s ok 4 /gobject/signals/generic-marshaller-1 1169s ok 5 /gobject/signals/generic-marshaller-2 1169s ok 6 /gobject/signals/generic-marshaller-enum-return-signed 1169s ok 7 /gobject/signals/generic-marshaller-enum-return-unsigned 1169s ok 8 /gobject/signals/generic-marshaller-int-return 1169s ok 9 /gobject/signals/generic-marshaller-uint-return 1169s ok 10 /gobject/signals/generic-marshaller-interface-return 1169s ok 11 /gobject/signals/custom-marshaller 1169s ok 12 /gobject/signals/connect 1169s ok 13 /gobject/signals/emission-hook 1169s ok 14 /gobject/signals/emitv 1169s ok 15 /gobject/signals/accumulator 1169s # Signal: accumulator-class-first 1169s # Signal: accumulator-class-last 1169s # Signal: accumulator-class-cleanup 1169s # Signal: accumulator-class-first-last 1169s # Signal: accumulator-class-first-last-cleanup 1169s # Signal: accumulator-class-last-cleanup 1169s ok 16 /gobject/signals/accumulator-class 1169s ok 17 /gobject/signals/introspection 1169s ok 18 /gobject/signals/block-handler 1169s ok 19 /gobject/signals/stop-emission 1169s ok 20 /gobject/signals/invocation-hint 1169s ok 21 /gobject/signals/test-disconnection-wrong-object 1169s ok 22 /gobject/signals/clear-signal-handler 1169s # /gobject/signals/lookup summary: Test that g_signal_lookup() works with a variety of inputs. 1169s ok 23 /gobject/signals/lookup 1169s # /gobject/signals/parse-name summary: Test that g_signal_parse_name() works with a variety of inputs. 1169s ok 24 /gobject/signals/parse-name 1169s ok 25 /gobject/signals/is-valid-name 1169s ok 26 /gobject/signals/weak-ref-disconnect 1169s # Start of lookup tests 1169s # /gobject/signals/lookup/invalid summary: Test that g_signal_lookup() emits a warning if looking up an invalid signal name. 1169s ok 27 /gobject/signals/lookup/invalid 1169s # End of lookup tests 1169s # Start of parse-name tests 1169s # /gobject/signals/parse-name/invalid summary: Test that g_signal_parse_name() ignores a variety of invalid inputs. 1169s # Parser input: 1169s # Parser input: 7zip 1169s # Parser input: invalid:signal 1169s # Parser input: simple-detailed:: 1169s # Parser input: simple-detailed: 1169s # Parser input: : 1169s # Parser input: :: 1169s # Parser input: :valid-detail 1169s # Parser input: ::valid-detail 1169s ok 28 /gobject/signals/parse-name/invalid 1169s # End of parse-name tests 1169s # Start of invalid-name tests 1169s # /gobject/signals/invalid-name/colon summary: Check that g_signal_new() rejects invalid signal names. 1169s ok 29 /gobject/signals/invalid-name/colon 1169s # /gobject/signals/invalid-name/first-char summary: Check that g_signal_new() rejects invalid signal names. 1169s ok 30 /gobject/signals/invalid-name/first-char 1169s # /gobject/signals/invalid-name/empty summary: Check that g_signal_new() rejects invalid signal names. 1169s ok 31 /gobject/signals/invalid-name/empty 1169s # End of invalid-name tests 1169s # End of signals tests 1169s # End of gobject tests 1169s TAP version 14 1169s # random seed: R02S7cdaa13ad2c84a1571b36959498461c0 1169s 1..2 1169s # Start of atomic tests 1169s ok 1 /atomic/types 1169s ok 2 /atomic/threaded 1169s # End of atomic tests 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/tmpokimt7ql 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/tmpyxajcjoo 1169s 1..2 1169s TAP version 14 1169s # random seed: R02S3aa7882ae18dc46cc97e69105953db7c 1169s 1..2 1169s # Start of qdata tests 1169s ok 1 /qdata/threaded 1169s # slow test /qdata/threaded executed in 0.69 secs 1169s ok 2 /qdata/dup 1169s # End of qdata tests 1169s TAP version 14 1169s # random seed: R02S6e5b72a417da546a39a9a66b906dddf7 1169s 1..71 1169s # Start of markup tests 1169s # Start of parse tests 1169s ok 1 /markup/parse/fail-1.gmarkup 1169s ok 2 /markup/parse/fail-10.gmarkup 1169s ok 3 /markup/parse/fail-11.gmarkup 1169s ok 4 /markup/parse/fail-12.gmarkup 1169s ok 5 /markup/parse/fail-13.gmarkup 1169s ok 6 /markup/parse/fail-14.gmarkup 1169s ok 7 /markup/parse/fail-15.gmarkup 1169s ok 8 /markup/parse/fail-16.gmarkup 1169s ok 9 /markup/parse/fail-17.gmarkup 1169s ok 10 /markup/parse/fail-18.gmarkup 1169s ok 11 /markup/parse/fail-19.gmarkup 1169s ok 12 /markup/parse/fail-2.gmarkup 1169s ok 13 /markup/parse/fail-20.gmarkup 1169s ok 14 /markup/parse/fail-21.gmarkup 1169s ok 15 /markup/parse/fail-22.gmarkup 1169s ok 16 /markup/parse/fail-23.gmarkup 1169s ok 17 /markup/parse/fail-24.gmarkup 1169s ok 18 /markup/parse/fail-25.gmarkup 1169s ok 19 /markup/parse/fail-26.gmarkup 1169s ok 20 /markup/parse/fail-27.gmarkup 1169s ok 21 /markup/parse/fail-28.gmarkup 1169s ok 22 /markup/parse/fail-29.gmarkup 1169s ok 23 /markup/parse/fail-3.gmarkup 1169s ok 24 /markup/parse/fail-30.gmarkup 1169s ok 25 /markup/parse/fail-31.gmarkup 1169s ok 26 /markup/parse/fail-32.gmarkup 1169s ok 27 /markup/parse/fail-33.gmarkup 1169s ok 28 /markup/parse/fail-34.gmarkup 1169s ok 29 /markup/parse/fail-35.gmarkup 1169s ok 30 /markup/parse/fail-36.gmarkup 1169s ok 31 /markup/parse/fail-37.gmarkup 1169s ok 32 /markup/parse/fail-38.gmarkup 1169s ok 33 /markup/parse/fail-39.gmarkup 1169s ok 34 /markup/parse/fail-4.gmarkup 1169s ok 35 /markup/parse/fail-40.gmarkup 1169s ok 36 /markup/parse/fail-41.gmarkup 1169s ok 37 /markup/parse/fail-42.gmarkup 1169s ok 38 /markup/parse/fail-43.gmarkup 1169s ok 39 /markup/parse/fail-44.gmarkup 1169s ok 40 /markup/parse/fail-45.gmarkup 1169s ok 41 /markup/parse/fail-46.gmarkup 1169s ok 42 /markup/parse/fail-47.gmarkup 1169s ok 43 /markup/parse/fail-48.gmarkup 1169s ok 44 /markup/parse/fail-49.gmarkup 1169s ok 45 /markup/parse/fail-5.gmarkup 1169s ok 46 /markup/parse/fail-50.gmarkup 1169s ok 47 /markup/parse/fail-51.gmarkup 1169s ok 48 /markup/parse/fail-52.gmarkup 1169s ok 49 /markup/parse/fail-53.gmarkup 1169s ok 50 /markup/parse/fail-54.gmarkup 1169s ok 51 /markup/parse/fail-6.gmarkup 1169s ok 52 /markup/parse/fail-7.gmarkup 1169s ok 53 /markup/parse/fail-8.gmarkup 1169s ok 54 /markup/parse/fail-9.gmarkup 1169s ok 55 /markup/parse/valid-1.gmarkup 1169s ok 56 /markup/parse/valid-10.gmarkup 1169s ok 57 /markup/parse/valid-11.gmarkup 1169s ok 58 /markup/parse/valid-12.gmarkup 1169s ok 59 /markup/parse/valid-13.gmarkup 1169s ok 60 /markup/parse/valid-14.gmarkup 1169s ok 61 /markup/parse/valid-15.gmarkup 1169s ok 62 /markup/parse/valid-16.gmarkup 1169s ok 63 /markup/parse/valid-17.gmarkup 1169s ok 64 /markup/parse/valid-2.gmarkup 1169s ok 65 /markup/parse/valid-3.gmarkup 1169s ok 66 /markup/parse/valid-4.gmarkup 1169s ok 67 /markup/parse/valid-5.gmarkup 1169s ok 68 /markup/parse/valid-6.gmarkup 1169s ok 69 /markup/parse/valid-7.gmarkup 1169s ok 70 /markup/parse/valid-8.gmarkup 1169s ok 71 /markup/parse/valid-9.gmarkup 1169s # End of parse tests 1169s # End of markup tests 1169s TAP version 14 1169s # random seed: R02Sf5b13b7642ac1d3e0946af0e68f89d88 1169s 1..24 1169s # Start of uri tests 1169s ok 1 /uri/file-to-uri 1169s ok 2 /uri/file-from-uri 1169s ok 3 /uri/file-roundtrip 1169s ok 4 /uri/list 1169s # Test 0: %2Babc %4F 1169s # Test 1: %2Babc %4F 1169s # Test 2: %00abc %4F 1169s # Test 3: /cursors/none.png 1169s # Test 4: /cursors%2fbad-subdir/none.png 1169s # Test 5: %0 1169s # Test 6: %ra 1169s # Test 7: %2r 1169s # Test 8: Timm B?der 1169s # Test 9: (null) 1169s ok 5 /uri/unescape-string 1169s ok 6 /uri/unescape-segment 1169s # Test 0: abcdefgABCDEFG._~ 1169s # Test 1: :+ \\?# 1169s # Test 2: a+b:c 1169s # Test 3: a+b:c\303\234 1169s # Test 4: \374;\322 1169s # Test 5: \303\261\303( 1169s ok 7 /uri/escape-string 1169s ok 8 /uri/escape-bytes 1169s ok 9 /uri/scheme 1169s ok 10 /uri/build 1169s ok 11 /uri/split 1169s ok 12 /uri/is_valid 1169s ok 13 /uri/to-string 1169s ok 14 /uri/join 1169s # /uri/join-split-round-trip summary: Test that joining different URI components survives a round trip 1169s # Combination 0 1169s # Combination 1 1169s # Combination 2 1169s # Combination 3 1169s # Combination 4 1169s # Combination 5 1169s # Combination 6 1169s # Combination 7 1169s # Combination 8 1169s # Combination 9 1169s # Combination 10 1169s # Combination 11 1169s # Combination 12 1169s # Combination 13 1169s # Combination 14 1169s # Combination 15 1169s # Combination 16 1169s # Combination 17 1169s # Combination 18 1169s # Combination 19 1169s # Combination 20 1169s # Combination 21 1169s # Combination 22 1169s # Combination 23 1169s # Combination 24 1169s # Combination 25 1169s # Combination 26 1169s # Combination 27 1169s # Combination 28 1169s # Combination 29 1169s # Combination 30 1169s # Combination 31 1169s # Combination 32 1169s # Combination 33 1169s # Combination 34 1169s # Combination 35 1169s # Combination 36 1169s # Combination 37 1169s # Combination 38 1169s # Combination 39 1169s # Combination 40 1169s # Combination 41 1169s # Combination 42 1169s # Combination 43 1169s # Combination 44 1169s # Combination 45 1169s # Combination 46 1169s # Combination 47 1169s # Combination 48 1169s # Combination 49 1169s # Combination 50 1169s # Combination 51 1169s # Combination 52 1169s # Combination 53 1169s # Combination 54 1169s # Combination 55 1169s # Combination 56 1169s # Combination 57 1169s # Combination 58 1169s # Combination 59 1169s # Combination 60 1169s # Combination 61 1169s # Combination 62 1169s # Combination 63 1169s # Combination 64 1169s # Combination 65 1169s # Combination 66 1169s # Combination 67 1169s # Combination 68 1169s # Combination 69 1169s # Combination 70 1169s # Combination 71 1169s # Combination 72 1169s # Combination 73 1169s # Combination 74 1169s # Combination 75 1169s # Combination 76 1169s # Combination 77 1169s # Combination 78 1169s # Combination 79 1169s # Combination 80 1169s # Combination 81 1169s # Combination 82 1169s # Combination 83 1169s # Combination 84 1169s # Combination 85 1169s # Combination 86 1169s # Combination 87 1169s # Combination 88 1169s # Combination 89 1169s # Combination 90 1169s # Combination 91 1169s # Combination 92 1169s # Combination 93 1169s # Combination 94 1169s # Combination 95 1169s # Combination 96 1169s # Combination 97 1169s # Combination 98 1169s # Combination 99 1169s # Combination 100 1169s # Combination 101 1169s # Combination 102 1169s # Combination 103 1169s # Combination 104 1169s # Combination 105 1169s # Combination 106 1169s # Combination 107 1169s # Combination 108 1169s # Combination 109 1169s # Combination 110 1169s # Combination 111 1169s # Combination 112 1169s # Combination 113 1169s # Combination 114 1169s # Combination 115 1169s # Combination 116 1169s # Combination 117 1169s # Combination 118 1169s # Combination 119 1169s # Combination 120 1169s # Combination 121 1169s # Combination 122 1169s # Combination 123 1169s # Combination 124 1169s # Combination 125 1169s # Combination 126 1169s # Combination 127 1169s # Combination 128 1169s # Combination 129 1169s # Combination 130 1169s # Combination 131 1169s # Combination 132 1169s # Combination 133 1169s # Combination 134 1169s # Combination 135 1169s # Combination 136 1169s # Combination 137 1169s # Combination 138 1169s # Combination 139 1169s # Combination 140 1169s # Combination 141 1169s # Combination 142 1169s # Combination 143 1169s # Combination 144 1169s # Combination 145 1169s # Combination 146 1169s # Combination 147 1169s # Combination 148 1169s # Combination 149 1169s # Combination 150 1169s # Combination 151 1169s # Combination 152 1169s # Combination 153 1169s # Combination 154 1169s # Combination 155 1169s # Combination 156 1169s # Combination 157 1169s # Combination 158 1169s # Combination 159 1169s # Combination 160 1169s # Combination 161 1169s # Combination 162 1169s # Combination 163 1169s # Combination 164 1169s # Combination 165 1169s # Combination 166 1169s # Combination 167 1169s # Combination 168 1169s # Combination 169 1169s # Combination 170 1169s # Combination 171 1169s # Combination 172 1169s # Combination 173 1169s # Combination 174 1169s # Combination 175 1169s # Combination 176 1169s # Combination 177 1169s # Combination 178 1169s # Combination 179 1169s # Combination 180 1169s # Combination 181 1169s # Combination 182 1169s # Combination 183 1169s # Combination 184 1169s # Combination 185 1169s # Combination 186 1169s # Combination 187 1169s # Combination 188 1169s # Combination 189 1169s # Combination 190 1169s # Combination 191 1169s # Combination 192 1169s # Combination 193 1169s # Combination 194 1169s # Combination 195 1169s # Combination 196 1169s # Combination 197 1169s # Combination 198 1169s # Combination 199 1169s # Combination 200 1169s # Combination 201 1169s # Combination 202 1169s # Combination 203 1169s # Combination 204 1169s # Combination 205 1169s # Combination 206 1169s # Combination 207 1169s # Combination 208 1169s # Combination 209 1169s # Combination 210 1169s # Combination 211 1169s # Combination 212 1169s # Combination 213 1169s # Combination 214 1169s # Combination 215 1169s # Combination 216 1169s # Combination 217 1169s # Combination 218 1169s # Combination 219 1169s # Combination 220 1169s # Combination 221 1169s # Combination 222 1169s # Combination 223 1169s # Combination 224 1169s # Combination 225 1169s # Combination 226 1169s # Combination 227 1169s # Combination 228 1169s # Combination 229 1169s # Combination 230 1169s # Combination 231 1169s # Combination 232 1169s # Combination 233 1169s # Combination 234 1169s # Combination 235 1169s # Combination 236 1169s # Combination 237 1169s # Combination 238 1169s # Combination 239 1169s # Combination 240 1169s # Combination 241 1169s # Combination 242 1169s # Combination 243 1169s # Combination 244 1169s # Combination 245 1169s # Combination 246 1169s # Combination 247 1169s # Combination 248 1169s # Combination 249 1169s # Combination 250 1169s # Combination 251 1169s # Combination 252 1169s # Combination 253 1169s # Combination 254 1169s # Combination 255 1169s ok 15 /uri/join-split-round-trip 1169s ok 16 /uri/normalize 1169s # Start of unescape-bytes tests 1169s # Test 0: %00%00 1169s # Test 1: /cursors/none.png 1169s # Test 2: /cursors%2fbad-subdir/none.png 1169s # Test 3: %% 1169s # Test 4: % 1169s ok 17 /uri/unescape-bytes/nul-terminated 1169s # Test 0: %00%00 1169s # Test 1: /cursors/none.png 1169s # Test 2: /cursors%2fbad-subdir/none.png 1169s # Test 3: %% 1169s # Test 4: % 1169s ok 18 /uri/unescape-bytes/length 1169s # End of unescape-bytes tests 1169s # Start of parsing tests 1169s # Test 0: foo: 1169s # Test 1: file:/dev/null 1169s # Test 2: file:///dev/null 1169s # Test 3: ftp://user@host/path 1169s # Test 4: ftp://user@host:9999/path 1169s # Test 5: ftp://user:password@host/path 1169s # Test 6: ftp://user:password@host:9999/path 1169s # Test 7: ftp://user:password@host 1169s # Test 8: http://us%65r@host 1169s # Test 9: http://us%40r@host 1169s # Test 10: http://us%3ar@host 1169s # Test 11: http://us%2fr@host 1169s # Test 12: http://us%3fr@host 1169s # Test 13: http://host?query 1169s # Test 14: http://host/path?query=http%3A%2F%2Fhost%2Fpath%3Fchildparam%3Dchildvalue¶m=value 1169s # Test 15: http://control-chars/%01%02%03%04%05%06%07%08%09%0A%0B%0C%0D%0E%0F%10%11%12%13%14%15%16%17%18%19%1A%1B%1C%1D%1E%1F%7F 1169s # Test 16: http://space/%20 1169s # Test 17: http://delims/%3C%3E%23%25%22 1169s # Test 18: http://unwise-chars/%7B%7D%7C%5C%5E%5B%5D%60 1169s # Test 19: http://[FEDC:BA98:7654:3210:FEDC:BA98:7654:3210]:80/index.html 1169s # Test 20: http://[1080:0:0:0:8:800:200C:417A]/index.html 1169s # Test 21: http://[3ffe:2a00:100:7031::1] 1169s # Test 22: http://[1080::8:800:200C:417A]/foo 1169s # Test 23: http://[::192.9.5.5]/ipng 1169s # Test 24: http://[::FFFF:129.144.52.38]:80/index.html 1169s # Test 25: http://[2010:836B:4179::836B:4179] 1169s # Test 26: http://host/path with spaces 1169s # Test 27: http://host/path 1169s # Test 28: http://host/path 1169s # Test 29: http://host 1169s # Test 30: http://host:999 1169s # Test 31: http://host/pa 1169s # th 1169s # Test 32: http: 1169s # //host/path 1169s # Test 33: http:// host/path 1169s # Test 34: http://host/path? 1169s # Test 35: http://host/path# 1169s # Test 36: http://host/path% 1169s # Test 37: http://h%ost/path 1169s # Test 38: http://host/path%% 1169s # Test 39: http://host/path%%% 1169s # Test 40: http://host/path%/x/ 1169s # Test 41: http://host/path%0x/ 1169s # Test 42: http://host/path%ax 1169s # Test 43: http://host/p?th/ 1169s # Test 44: HTTP://////////////// 1169s # Test 45: http://@host 1169s # Test 46: http://:@host 1169s # Test 47: scheme://foo%3Abar._webdav._tcp.local 1169s # Test 48: http://example.com/.. 1169s # Test 49: foo0://host/path 1169s # Test 50: f0.o://host/path 1169s # Test 51: http++://host/path 1169s # Test 52: http-ish://host/path 1169s # Test 53: http://[fe80::dead:beef%]/ 1169s # Test 54: http://[fe80::dead:beef%em1]/ 1169s # Test 55: http://[fe80::dead:beef%em1]/ 1169s # Test 56: http://[fe80::dead:beef%25em1]/ 1169s # Test 57: http://[fe80::dead:beef%25em1%20]/ 1169s # Test 58: http://[fe80::dead:beef%25em%31]/ 1169s # Test 59: http://[fe80::dead:beef%10]/ 1169s # Test 60: http://[fe80::dead:beef%10]/ 1169s # Test 61: http://[fe80::dead:beef%25]/ 1169s # Test 62: http://[fe80::dead:beef%25]/ 1169s # Test 63: http://[192.168.0.1%25em1]/ 1169s # Test 64: http://[fe80::dead:beef%2em1]/ 1169s # Test 65: http://[fe80::dead:beef%2em1]/ 1169s # Test 66: http://[fe80::dead:beef%25em1%00]/ 1169s # Test 67: http://[fe80::dead:beef%25em1%00]/ 1169s # Test 68: http://xn--mixed-?p/ 1169s # Test 69: data:./// 1169s # Test 70: data:/.// 1169s ok 19 /uri/parsing/absolute 1169s ok 20 /uri/parsing/relative 1169s # End of parsing tests 1169s # Start of iter-params tests 1169s # URI 0: p1=foo&p2=bar;p3=baz 1169s # URI 1: p1=foo&p2=bar 1169s # URI 2: p1=foo&&P1=bar 1169s # URI 3: %00=foo 1169s # URI 4: p1=%00 1169s # URI 5: p1=foo&p1=bar 1169s # URI 6: p1=foo&P1=bar 1169s # URI 7: =% 1169s # URI 8: = 1169s # URI 9: foo 1169s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1169s ok 21 /uri/iter-params/nul-terminated 1169s # URI 0: p1=foo&p2=bar;p3=baz 1169s # URI 1: p1=foo&p2=bar 1169s # URI 2: p1=foo&&P1=bar 1169s # URI 3: %00=foo 1169s # URI 4: p1=%00 1169s # URI 5: p1=foo&p1=bar 1169s # URI 6: p1=foo&P1=bar 1169s # URI 7: =% 1169s # URI 8: = 1169s # URI 9: foo 1169s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1169s ok 22 /uri/iter-params/length 1169s # End of iter-params tests 1169s # Start of parse-params tests 1169s # URI 0: p1=foo&p2=bar;p3=baz 1169s # URI 1: p1=foo&p2=bar 1169s # URI 2: p1=foo&&P1=bar 1169s # URI 3: %00=foo 1169s # URI 4: p1=%00 1169s # URI 5: p1=foo&p1=bar 1169s # URI 6: p1=foo&P1=bar 1169s # URI 7: =% 1169s # URI 8: = 1169s # URI 9: foo 1169s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1169s ok 23 /uri/parse-params/nul-terminated 1169s # URI 0: p1=foo&p2=bar;p3=baz 1169s # URI 1: p1=foo&p2=bar 1169s # URI 2: p1=foo&&P1=bar 1169s # URI 3: %00=foo 1169s # URI 4: p1=%00 1169s # URI 5: p1=foo&p1=bar 1169s # URI 6: p1=foo&P1=bar 1169s # URI 7: =% 1169s # URI 8: = 1169s # URI 9: foo 1169s # URI 10: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 11: foo=bar+%26+baz&saisons=%C3%89t%C3%A9%2Bhiver 1169s # URI 12: token=exp=123~acl=/QualityLevels(*~hmac=0cb 1169s ok 24 /uri/parse-params/length 1169s # End of parse-params tests 1169s # End of uri tests 1169s TAP version 14 1169s # random seed: R02Sfc91c5a8be2b6cccd06e9bbf7fc053ad 1169s 1..2 1169s # Start of gtask tests 1169s # 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. 1169s ok 1 /gtask/name 1169s # Start of name tests 1169s # 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. 1169s ok 2 /gtask/name/macro-wrapper 1169s # End of name tests 1169s # End of gtask tests 1169s TAP version 14 1169s # random seed: R02S32c8923f3bb27973a93815e775b221e7 1169s 1..1 1169s # Start of null-settings-backend tests 1169s ok 1 /null-settings-backend/extension-point-registered 1169s # End of null-settings-backend tests 1169s TAP version 14 1169s # random seed: R02S86b3e1724a78dabea9459e05921df285 1169s 1..20 1169s # Start of glib-unix tests 1169s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1169s ok 1 /glib-unix/closefrom 1169s ok 2 /glib-unix/pipe 1169s # /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 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1169s ok 3 /glib-unix/pipe-stdio-overwrite 1169s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1169s ok 4 /glib-unix/pipe-struct 1169s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1169s ok 5 /glib-unix/pipe-struct-auto 1169s ok 6 /glib-unix/error 1169s ok 7 /glib-unix/nonblocking 1169s ok - glib/gmenumodel.test 1169s # Running test: glib/gdbus-connection-slow.test 1169s ok - glib/gdbus-connection-slow.test 1169s # Running test: glib/timer.test 1169s ok - glib/timer.test 1169s # Running test: glib/converter.test 1169s ok - glib/converter.test 1169s # Running test: glib/gi-inspect-typelib.py.test 1169s ok - glib/gi-inspect-typelib.py.test 1169s # Running test: glib/spawn-singlethread.test 1169s ok - glib/spawn-singlethread.test 1169s # Running test: glib/thread.test 1169s ok - glib/thread.test 1169s # Running test: glib/actions.test 1169s ok - glib/actions.test 1169s # Running test: glib/custom-dispatch.test 1169s ok - glib/custom-dispatch.test 1169s # Running test: glib/atomic.test 1169s ok - glib/atomic.test 1169s # Running test: glib/testing.test 1169s ok - glib/testing.test 1169s # Running test: glib/cxx-98.test 1169s ok - glib/cxx-98.test 1169s # Running test: glib/gdbus-proxy-well-known-name.test 1169s ok - glib/gdbus-proxy-well-known-name.test 1169s # Running test: glib/signals.test 1169s ok - glib/signals.test 1169s # Running test: glib/atomic-c-17.test 1169s ok - glib/atomic-c-17.test 1169s # Running test: glib/assert-msg-test.py.test 1169s ok - glib/assert-msg-test.py.test 1169s # Running test: glib/qdata.test 1169s # Executing: glib/qdata.test 1169s ok - glib/qdata.test 1169s # Running test: glib/markup-parse.test 1169s ok - glib/markup-parse.test 1169s # Running test: glib/uri.test 1169s ok - glib/uri.test 1169s # Running test: glib/cxx-03.test 1169s ok - glib/cxx-03.test 1169s # Running test: glib/null-settings-backend.test 1169s ok - glib/null-settings-backend.test 1169s # Running test: glib/unix.test 1169s ok 8 /glib-unix/sighup 1169s # slow test /glib-unix/sighup executed in 0.50 secs 1169s ok 9 /glib-unix/sigterm 1169s # slow test /glib-unix/sigterm executed in 0.50 secs 1170s ok 10 /glib-unix/sighup_again 1170s # slow test /glib-unix/sighup_again executed in 0.50 secs 1170s ok 11 /glib-unix/sighup_add_remove 1170s ok 12 /glib-unix/sighup_nested 1175s ok 13 /glib-unix/callback_after_signal 1175s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1175s # Executing: glib/unix.test 1175s ok 14 /glib-unix/child-wait 1175s # Start of closefrom tests 1175s # Start of subprocess tests 1175s # End of subprocess tests 1175s # End of closefrom tests 1175s # Start of pipe tests 1175s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1175s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1175s ok 15 /glib-unix/pipe/fd-cloexec 1175s # End of pipe tests 1175s # Start of sighup tests 1175s ok 16 /glib-unix/sighup/alternate-stack 1175s # slow test /glib-unix/sighup/alternate-stack executed in 1.00 secs 1175s # End of sighup tests 1175s # Start of sigterm tests 1175s ok 17 /glib-unix/sigterm/alternate-stack 1175s # slow test /glib-unix/sigterm/alternate-stack executed in 1.00 secs 1175s # End of sigterm tests 1175s # Start of sighup_again tests 1175s ok 18 /glib-unix/sighup_again/alternate-stack 1175s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.00 secs 1175s # End of sighup_again tests 1175s # Start of get-passwd-entry tests 1175s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1175s ok 19 /glib-unix/get-passwd-entry/root 1175s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1175s ok 20 /glib-unix/get-passwd-entry/nonexistent 1175s # End of get-passwd-entry tests 1175s # End of glib-unix tests 1175s TAP version 14 1175s # random seed: R02Sc3479f02ea268da33d47bd58e0d04835 1175s 1..4 1175s # Start of dump tests 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_579352/dump/empty-file/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_579352/dump/empty-file/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_579352/dump/empty-file/.dirs/system-config1:/tmp/test_dump_579352/dump/empty-file/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_579352/dump/empty-file/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_579352/dump/empty-file/.dirs/system-data1:/tmp/test_dump_579352/dump/empty-file/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_579352/dump/empty-file/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_579352/dump/empty-file/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_579352/dump/empty-file/.dirs/runtime 1175s ok 1 /dump/empty-file 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_579352/dump/missing-get-type/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_579352/dump/missing-get-type/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_579352/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_579352/dump/missing-get-type/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_579352/dump/missing-get-type/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_579352/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_579352/dump/missing-get-type/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_579352/dump/missing-get-type/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_579352/dump/missing-get-type/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_579352/dump/missing-get-type/.dirs/runtime 1175s Invalid GType function: 'does_not_exist_get_type' 1175s ok 2 /dump/missing-get-type 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_579352/dump/missing-quark/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_579352/dump/missing-quark/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_579352/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_579352/dump/missing-quark/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_579352/dump/missing-quark/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_579352/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_579352/dump/missing-quark/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_579352/dump/missing-quark/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_579352/dump/missing-quark/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_579352/dump/missing-quark/.dirs/runtime 1175s Invalid error quark function: 'does_not_exist_error' 1175s ok 3 /dump/missing-quark 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_579352/dump/basic/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_579352/dump/basic/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_579352/dump/basic/.dirs/system-config1:/tmp/test_dump_579352/dump/basic/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_579352/dump/basic/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_579352/dump/basic/.dirs/system-data1:/tmp/test_dump_579352/dump/basic/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_579352/dump/basic/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_579352/dump/basic/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_579352/dump/basic/.dirs/runtime 1175s ok 4 /dump/basic 1175s # End of dump tests 1175s TAP version 14 1175s # random seed: R02S22524f6c1fd6e7aec405e1116a4d2831 1175s 1..2 1175s # Start of gdbus tests 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_0S0352/gdbus/close-pending/.dirs/runtime 1175s ok 1 /gdbus/close-pending 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_0S0352/gdbus/unref-pending/.dirs/runtime 1175s ok - glib/unix.test 1175s # Running test: glib/dump.test 1175s ok - glib/dump.test 1175s # Running test: glib/gdbus-close-pending.test 1175s ok 2 /gdbus/unref-pending 1175s # End of gdbus tests 1175s ok - glib/gdbus-close-pending.test 1175s # Running test: glib/string.test 1175s TAP version 14 1175s # random seed: R02S2421c8e6e6c1a208644e4c097c9f4b92 1175s 1..23 1175s # Start of string tests 1175s ok 1 /string/test-string-chunks 1175s ok 2 /string/test-string-chunk-insert 1175s ok 3 /string/test-string-new 1175s ok 4 /string/test-string-printf 1175s ok 5 /string/test-string-assign 1175s ok 6 /string/test-string-append-c 1175s ok 7 /string/test-string-append 1175s ok 8 /string/test-string-append-vprintf 1175s ok - glib/string.test 1175s ok 9 /string/test-string-prepend-c 1175s ok 10 /string/test-string-prepend 1175s ok 11 /string/test-string-insert 1175s ok 12 /string/test-string-insert-unichar 1175s ok 13 /string/test-string-equal 1175s ok 14 /string/test-string-truncate 1175s ok 15 /string/test-string-overwrite 1175s ok 16 /string/test-string-nul-handling 1175s ok 17 /string/test-string-up-down 1175s ok 18 /string/test-string-set-size 1175s ok 19 /string/test-string-to-bytes 1175s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1175s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1175s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1175s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1175s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1175s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1175s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1175s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1175s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1175s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1175s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1175s # -> 4 replacements, "fd fr fals" 1175s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1175s # -> 3 replacements, "aaaaaaaaa" 1175s # 7: Replacing "a" with "" (limit 0) in "aaa" 1175s # -> 3 replacements, "" 1175s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1175s # -> 1 replacements, "bba" 1175s # 9: Replacing "" with "bar" (limit 0) in "foo" 1175s # -> 4 replacements, "barfbarobarobar" 1175s # 10: Replacing "" with "bar" (limit 1) in "foo" 1175s # -> 1 replacements, "barfoo" 1175s # 11: Replacing "" with "bar" (limit 2) in "foo" 1175s # -> 2 replacements, "barfbaroo" 1175s # 12: Replacing "" with "bar" (limit 3) in "foo" 1175s # -> 3 replacements, "barfbarobaro" 1175s # 13: Replacing "" with "bar" (limit 4) in "foo" 1175s # -> 4 replacements, "barfbarobarobar" 1175s # 14: Replacing "" with "bar" (limit 5) in "foo" 1175s # -> 4 replacements, "barfbarobarobar" 1175s # 15: Replacing "" with "x" (limit 0) in "" 1175s # -> 1 replacements, "x" 1175s # 16: Replacing "" with "" (limit 0) in "" 1175s # -> 1 replacements, "" 1175s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1175s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1175s ok 20 /string/test-string-replace 1175s ok 21 /string/test-string-steal 1175s ok 22 /string/test-string-new-take 1175s # Start of test-string-new-take tests 1175s ok 23 /string/test-string-new-take/null 1175s # End of test-string-new-take tests 1175s # End of string tests 1175s # Running test: glib/sandbox.test 1175s TAP version 14 1175s # random seed: R02S9b17bf388f6e5b21692a4c8afa8ab01f 1175s 1..4 1175s # Start of sandbox tests 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_7RF152/sandbox/none/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_7RF152/sandbox/none/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_7RF152/sandbox/none/.dirs/runtime 1175s ok - glib/sandbox.test 1175s # Running test: glib/fileattributematcher.test 1175s ok - glib/fileattributematcher.test 1175s # Running test: glib/thumbnail-verification.test 1175s ok - glib/thumbnail-verification.test 1175s # Running test: glib/rec-mutex.test 1175s ok 1 /sandbox/none 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_7RF152/sandbox/snap/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_7RF152/sandbox/snap/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_7RF152/sandbox/snap/.dirs/runtime 1175s # Created snap.yaml in /tmp/test_sandbox_7RF152/snap/current/meta/snap.yaml 1175s ok 2 /sandbox/snap 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_7RF152/sandbox/classic-snap/.dirs/runtime 1175s # Created snap.yaml in /tmp/test_sandbox_7RF152/snap/current/meta/snap.yaml 1175s ok 3 /sandbox/classic-snap 1175s ok - glib/rec-mutex.test 1175s # Running test: glib/reference.test 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/runtime 1175s # Creating .flatpak-info in /tmp/test_sandbox_7RF152/sandbox/flatpak/.dirs/runtime/.flatpak-info 1175s ok 4 /sandbox/flatpak 1175s # End of sandbox tests 1175s TAP version 14 1175s # random seed: R02Scfcc2194923338202a7320ca659e9de2 1175s 1..3 1175s # Start of fileattributematcher tests 1175s ok 1 /fileattributematcher/exact 1175s ok 2 /fileattributematcher/equality 1175s ok 3 /fileattributematcher/subtract 1175s # End of fileattributematcher tests 1175s TAP version 14 1175s # random seed: R02Sd3fd5665bd9678b33bc239c7eebb6c24 1175s 1..1 1175s # Start of png-thumbs tests 1175s ok 1 /png-thumbs/validity 1175s # End of png-thumbs tests 1175s TAP version 14 1175s # random seed: R02S34c10f45a1e3cef5892cc362868c5bc4 1175s 1..29 1175s # Start of thread tests 1175s ok 1 /thread/rec-mutex1 1175s ok 2 /thread/rec-mutex2 1175s ok 3 /thread/rec-mutex3 1175s ok 4 /thread/rec-mutex4 1175s # Start of rec-mutex tests 1175s # Start of perf tests 1175s # Start of uncontended tests 1175s # max perf: 0.500000 mips 1175s ok 5 /thread/rec-mutex/perf/uncontended/depth1 1175s # max perf: 1.000000 mips 1175s ok 6 /thread/rec-mutex/perf/uncontended/depth2 1175s # max perf: 0.500000 mips 1175s ok 7 /thread/rec-mutex/perf/uncontended/depth3 1175s # max perf: 0.500000 mips 1175s ok 8 /thread/rec-mutex/perf/uncontended/depth4 1175s # max perf: 0.500000 mips 1175s ok 9 /thread/rec-mutex/perf/uncontended/depth5 1175s # End of uncontended tests 1175s # Start of contended1 tests 1175s # max perf: inf mips 1175s ok 10 /thread/rec-mutex/perf/contended1/depth1 1175s # max perf: 2.000000 mips 1175s ok 11 /thread/rec-mutex/perf/contended1/depth2 1175s # max perf: 2.000000 mips 1175s ok 12 /thread/rec-mutex/perf/contended1/depth3 1175s # max perf: inf mips 1175s ok 13 /thread/rec-mutex/perf/contended1/depth4 1175s # max perf: 2.000000 mips 1175s ok 14 /thread/rec-mutex/perf/contended1/depth5 1175s # End of contended1 tests 1175s # Start of contended2 tests 1175s # max perf: 3.000000 mips 1175s ok 15 /thread/rec-mutex/perf/contended2/depth1 1175s # max perf: inf mips 1175s ok 16 /thread/rec-mutex/perf/contended2/depth2 1175s # max perf: 3.000000 mips 1175s ok 17 /thread/rec-mutex/perf/contended2/depth3 1175s # max perf: 3.000000 mips 1175s ok 18 /thread/rec-mutex/perf/contended2/depth4 1175s # max perf: inf mips 1175s ok 19 /thread/rec-mutex/perf/contended2/depth5 1175s # End of contended2 tests 1175s # Start of contended3 tests 1175s # max perf: 2.000000 mips 1175s ok 20 /thread/rec-mutex/perf/contended3/depth1 1175s # max perf: 4.000000 mips 1175s ok 21 /thread/rec-mutex/perf/contended3/depth2 1175s # max perf: 4.000000 mips 1175s ok 22 /thread/rec-mutex/perf/contended3/depth3 1175s # max perf: 2.000000 mips 1175s ok 23 /thread/rec-mutex/perf/contended3/depth4 1175s # max perf: 0.800000 mips 1175s ok 24 /thread/rec-mutex/perf/contended3/depth5 1175s # End of contended3 tests 1175s # Start of contended4 tests 1175s # max perf: 2.500000 mips 1175s ok 25 /thread/rec-mutex/perf/contended4/depth1 1175s # max perf: 0.500000 mips 1175s ok 26 /thread/rec-mutex/perf/contended4/depth2 1175s # max perf: 5.000000 mips 1175s ok 27 /thread/rec-mutex/perf/contended4/depth3 1175s # max perf: 1.250000 mips 1175s ok 28 /thread/rec-mutex/perf/contended4/depth4 1175s # max perf: 0.416667 mips 1175s ok 29 /thread/rec-mutex/perf/contended4/depth5 1175s # End of contended4 tests 1175s # End of perf tests 1175s # End of rec-mutex tests 1175s # End of thread tests 1175s TAP version 14 1175s # random seed: R02S2c9122c3d5d91af61b9bbf352afdf700 1175s 1..29 1175s # Start of type tests 1175s ok 1 /type/fundamentals 1175s ok 2 /type/qdata 1175s ok 3 /type/query 1175s ok 4 /type/class-private 1175s # End of type tests 1175s # Start of object tests 1175s ok 5 /object/clear 1175s ok 6 /object/clear-function 1175s ok 7 /object/set 1175s ok 8 /object/set-function 1175s ok 9 /object/value 1175s ok 10 /object/initially-unowned 1175s ok 11 /object/weak-pointer 1175s ok 12 /object/weak-ref 1175s ok 13 /object/toggle-ref 1175s ok 14 /object/qdata 1175s ok 15 /object/qdata2 1175s # Start of set tests 1175s # /object/set/derived-type summary: Check that g_set_object() doesn?t give strict aliasing warnings when used on types derived from GObject 1175s ok 16 /object/set/derived-type 1175s # End of set tests 1175s # Start of weak-pointer tests 1175s ok 17 /object/weak-pointer/clear 1175s ok 18 /object/weak-pointer/clear-function 1175s ok 19 /object/weak-pointer/set 1175s ok 20 /object/weak-pointer/set-function 1175s # End of weak-pointer tests 1175s # Start of weak-ref tests 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1175s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1175s ok 21 /object/weak-ref/on-dispose 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1175s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1175s ok 22 /object/weak-ref/on-run-dispose 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1175s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1175s ok 23 /object/weak-ref/on-toggle-notify 1175s ok 24 /object/weak-ref/in-toggle-notify 1175s ok 25 /object/weak-ref/many 1175s # Start of concurrent tests 1175s ok 26 /object/weak-ref/concurrent/0 1176s ok - glib/reference.test 1176s ok 27 /object/weak-ref/concurrent/1 1176s # End of concurrent tests 1176s # End of weak-ref tests 1176s # Start of toggle-ref tests 1176s ok 28 /object/toggle-ref/ref-on-dispose 1176s # Running test: glib/signals-refcount4.test 1176s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1176s # End of toggle-ref tests 1176s # End of object tests 1176s TAP version 14 1176s # random seed: R02Sf775d7672ae7e340ed86fbbdeba57f54 1176s 1..1 1176s # Start of gobject tests 1176s # Start of refcount tests 1176s # init 0xafb6978 1176s # 1176s # init 0xafbea38 1176s # 1179s # Executing: glib/signals-refcount4.test 1181s # dispose 0xafb6978! 1181s # 1181s # dispose 0xafbea38! 1181s # 1181s ok 1 /gobject/refcount/signals 1181s # slow test /gobject/refcount/signals executed in 5.00 secs 1181s # End of refcount tests 1181s # End of gobject tests 1181s ok - glib/signals-refcount4.test 1181s # Running test: glib/portal-support-flatpak-network-only.test 1181s TAP version 14 1181s # random seed: R02S61c336e64f0a30ef452dc7b66ced9432 1181s 1..1 1181s # Start of portal-support tests 1181s # Start of flatpak tests 1181s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/home 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/cache 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/system-config1:/tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/system-config2 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/config 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/system-data1:/tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/system-data2 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/data 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/state 1181s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/runtime 1181s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-network-only_5TXX52/portal-support/flatpak/network/.dirs/runtime/.flatpak-info 1181s ok 1 /portal-support/flatpak/network 1181s # End of flatpak tests 1181s # End of portal-support tests 1181s ok - glib/portal-support-flatpak-network-only.test 1181s # Running test: glib/glistmodel.test 1181s TAP version 14 1181s # random seed: R02Sf0d5eec5919d08d05af64bdee12025cf 1181s 1..18 1181s # Start of glistmodel tests 1181s # Start of store tests 1181s ok 1 /glistmodel/store/properties 1181s ok 2 /glistmodel/store/non-gobjects 1181s ok 3 /glistmodel/store/boundaries 1181s ok 4 /glistmodel/store/refcounts 1181s ok - glib/glistmodel.test 1181s # Running test: glib/memory-monitor.test 1181s ok - glib/memory-monitor.test 1181s # Running test: glib/unix-streams.test 1181s ok 5 /glistmodel/store/sorted 1181s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1181s ok 6 /glistmodel/store/splice-replace-middle 1181s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1181s ok 7 /glistmodel/store/splice-replace-all 1181s ok 8 /glistmodel/store/splice-noop 1181s ok 9 /glistmodel/store/splice-remove-multiple 1181s ok 10 /glistmodel/store/splice-add-multiple 1181s ok 11 /glistmodel/store/splice-wrong-type 1181s ok 12 /glistmodel/store/item-type 1181s ok 13 /glistmodel/store/remove-all 1181s ok 14 /glistmodel/store/sort 1181s ok 15 /glistmodel/store/get-item-cache 1181s ok 16 /glistmodel/store/items-changed 1181s ok 17 /glistmodel/store/past-end 1181s ok 18 /glistmodel/store/find 1181s # End of store tests 1181s # End of glistmodel tests 1181s TAP version 14 1181s # random seed: R02Sd028e8b7bed476792560447962e892ef 1181s 1..1 1181s # Start of memory-monitor tests 1181s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1181s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ?gio-memory-monitor? 1181s ok 1 /memory-monitor/default 1181s # End of memory-monitor tests 1181s TAP version 14 1181s # random seed: R02S83bbe7fb7311fb7d700a71aa1d394502 1181s 1..9 1181s # Start of unix-streams tests 1181s ok 1 /unix-streams/basic 1181s ok 2 /unix-streams/pipe-io-test 1181s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1182s ok 3 /unix-streams/nonblocking-io-test 1182s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1182s ok 4 /unix-streams/read_write 1182s ok 5 /unix-streams/read_writev 1182s ok 6 /unix-streams/write-wouldblock 1182s ok 7 /unix-streams/writev-wouldblock 1182s ok 8 /unix-streams/write-async-wouldblock 1182s ok 9 /unix-streams/writev-async-wouldblock 1182s # End of unix-streams tests 1182s ok - glib/unix-streams.test 1182s TAP version 14 1182s # random seed: R02Scb007252f5da0b4e3c64651fcdedda20 1182s 1..6 1182s # Start of glib tests 1182s # Start of checked-math tests 1182s ok 1 /glib/checked-math/guint-add 1182s ok 2 /glib/checked-math/guint-mul 1182s ok 3 /glib/checked-math/guint64-add 1182s ok 4 /glib/checked-math/guint64-mul 1182s ok 5 /glib/checked-math/gsize-add 1182s ok 6 /glib/checked-math/gsize-mul 1182s # End of checked-math tests 1182s # End of glib tests 1182s # Running test: glib/overflow-fallback.test 1182s ok - glib/overflow-fallback.test 1182s # Running test: glib/gdbus-test-codegen.test 1182s TAP version 14 1182s # random seed: R02S3be9edf221917b6318aaebaed53fee4a 1182s 1..8 1182s # Start of gdbus tests 1182s # Start of codegen tests 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/annotations/.dirs/runtime 1182s ok 1 /gdbus/codegen/annotations 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/interface_stability/.dirs/runtime 1182s ok 2 /gdbus/codegen/interface_stability 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/object-manager/.dirs/runtime 1182s ok 3 /gdbus/codegen/object-manager 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/property-naming/.dirs/runtime 1182s ok 4 /gdbus/codegen/property-naming 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/autocleanups/.dirs/runtime 1182s ok 5 /gdbus/codegen/autocleanups 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/deprecations/.dirs/runtime 1182s ok 6 /gdbus/codegen/deprecations 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/standalone-interface-info/.dirs/runtime 1182s ok 7 /gdbus/codegen/standalone-interface-info 1182s ok - glib/gdbus-test-codegen.test 1182s # Running test: glib/gdbus-exit-on-close.test 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_4CE552/gdbus/codegen/unix-fd-list/.dirs/runtime 1182s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1182s ok 8 /gdbus/codegen/unix-fd-list 1182s # End of codegen tests 1182s # End of gdbus tests 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1182s TAP version 14 1182s # random seed: R02Sa4fa418ba7b747624691247fd38ec21e 1182s 1..4 1182s # Start of gdbus tests 1182s # Start of exit-on-close tests 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/default/.dirs/runtime 1182s ok 1 /gdbus/exit-on-close/default 1182s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/home 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/cache 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/system-config2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/config 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/system-data2 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/data 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/state 1182s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/true/.dirs/runtime 1183s ok 2 /gdbus/exit-on-close/true 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/false/.dirs/runtime 1183s ok - glib/gdbus-exit-on-close.test 1183s # Running test: glib/cxx.test 1183s ok - glib/cxx.test 1183s # Running test: glib/memory-monitor-dbus.test 1183s ok - glib/memory-monitor-dbus.test 1183s # Running test: glib/live-g-file.test 1183s ok - glib/live-g-file.test 1183s # Running test: glib/power-profile-monitor.test 1183s ok - glib/power-profile-monitor.test 1183s # Running test: glib/gdbus-proxy-unique-name.test 1183s ok - glib/gdbus-proxy-unique-name.test 1183s # Running test: glib/environment.test 1183s ok - glib/environment.test 1183s # Running test: glib/gsocketclient-slow.test 1183s # Executing: glib/gsocketclient-slow.test 1183s ok 3 /gdbus/exit-on-close/false 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/system-config1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/system-data1:/tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-exit-on-close_9WU652/gdbus/exit-on-close/we-close/.dirs/runtime 1183s ok 4 /gdbus/exit-on-close/we-close 1183s # Start of default tests 1183s # End of default tests 1183s # Start of true tests 1183s # End of true tests 1183s # Start of false tests 1183s # End of false tests 1183s # Start of we-close tests 1183s # End of we-close tests 1183s # End of exit-on-close tests 1183s # End of gdbus tests 1183s TAP version 14 1183s # random seed: R02Scd08ce2568982ec34800cfa92fbd6973 1183s 1..2 1183s # Start of gtask tests 1183s # 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. 1183s ok 1 /gtask/name 1183s # Start of name tests 1183s # 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. 1183s ok 2 /gtask/name/macro-wrapper 1183s # End of name tests 1183s # End of gtask tests 1183s TAP version 13 1183s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal # SKIP https://bugs.debian.org/995178 1183s 1..1 1183s TAP version 14 1183s # random seed: R02S050cd54b7e2fae28848b1c7a98f22fb3 1183s 1..13 1183s # Start of live-g-file tests 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/prep_clean_structure/.dirs/runtime 1183s # Cleaning target testing structure in '/tmp/test_live-g-file_SM9R52/testdir_live-g-file'... 1183s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1183s ok 1 /live-g-file/prep_clean_structure 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/create_structure/.dirs/runtime 1183s # 1183s # Going to create testing structure in '/tmp/test_live-g-file_SM9R52/testdir_live-g-file'... 1183s # Creating directory 'dir1'... 1183s # Creating directory 'dir1/subdir'... 1183s # Creating directory 'dir2'... 1183s # Creating directory 'dir-target'... 1183s # Creating directory 'dir_no-access'... 1183s # Creating directory 'dir_no-write'... 1183s # Creating file 'target-file'... 1183s # Creating file 'normal_file'... 1183s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1183s # Creating file 'executable_file'... 1183s # Creating file 'private_file'... 1183s # Creating file 'normal_file2'... 1183s # Creating file 'readonly_file'... 1183s # Creating file 'UTF_pr?i?lis? z'... 1183s # Creating directory 'dir_pr?i?lis? z'... 1183s # Creating symlink 'lost_symlink' --> 'nowhere'... 1183s # Creating directory 'dir_hidden'... 1183s # Creating file 'dir_hidden/.a-hidden-file'... 1183s # Creating file 'dir_hidden/file-in-.hidden1'... 1183s # Creating file 'dir_hidden/file-in-.hidden2'... 1183s # Creating pattern file... 1183s # done. 1183s ok 2 /live-g-file/create_structure 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_initial_structure/.dirs/runtime 1183s # Testing sample structure in '/tmp/test_live-g-file_SM9R52/testdir_live-g-file'... 1183s # Testing file 'dir1'... 1183s # Testing file 'dir1/subdir'... 1183s # Testing file 'dir2'... 1183s # Testing file 'dir-target'... 1183s # Testing file 'dir_no-access'... 1183s # Testing file 'dir_no-write'... 1183s # Testing file 'target-file'... 1183s # Testing file 'normal_file'... 1183s # Testing file 'normal_file-symlink'... 1183s # Testing file 'executable_file'... 1183s # Testing file 'private_file'... 1183s # Testing file 'normal_file2'... 1183s # Testing file 'readonly_file'... 1183s # Testing file 'UTF_pr?i?lis? z'... 1183s # Testing file 'dir_pr?i?lis? z'... 1183s # Testing file 'lost_symlink'... 1183s # Testing file 'dir_hidden'... 1183s # Testing file 'dir_hidden/.a-hidden-file'... 1183s # Testing file 'dir_hidden/file-in-.hidden1'... 1183s # Testing file 'dir_hidden/file-in-.hidden2'... 1183s # Testing pattern file... 1183s # read 65536 bytes, total = 65536 of 65536. 1183s ok 3 /live-g-file/test_initial_structure 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_traverse_structure/.dirs/runtime 1183s # Traversing through the sample structure in '/tmp/test_live-g-file_SM9R52/testdir_live-g-file'... 1183s # Found file dir1, relative to root: dir1 1183s # Found file subdir, relative to root: dir1/subdir 1183s # Found file dir2, relative to root: dir2 1183s # Found file dir-target, relative to root: dir-target 1183s # Found file dir_no-access, relative to root: dir_no-access 1183s # Found file dir_no-write, relative to root: dir_no-write 1183s # Found file target-file, relative to root: target-file 1183s # Found file normal_file, relative to root: normal_file 1183s # Found file normal_file-symlink, relative to root: normal_file-symlink 1183s # Found file executable_file, relative to root: executable_file 1183s # Found file private_file, relative to root: private_file 1183s # Found file normal_file2, relative to root: normal_file2 1183s # Found file readonly_file, relative to root: readonly_file 1183s # Found file UTF_pr?i?lis? z, relative to root: UTF_pr?i?lis? z 1183s # Found file dir_pr?i?lis? z, relative to root: dir_pr?i?lis? z 1183s # Found file lost_symlink, relative to root: lost_symlink 1183s # Found file dir_hidden, relative to root: dir_hidden 1183s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1183s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1183s # Found file .hidden, relative to root: dir_hidden/.hidden 1183s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1183s # Found file pattern_file, relative to root: pattern_file 1183s ok 4 /live-g-file/test_traverse_structure 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_enumerate/.dirs/runtime 1183s # Test enumerate '/tmp/test_live-g-file_SM9R52/testdir_live-g-file'... 1183s # Testing file 'dir_no-access' 1183s # Testing file 'normal_file' 1183s # Testing file 'normal_file-symlink' 1183s # Testing file 'not_exists' 1183s # Testing file 'not_exists' 1183s # Testing file 'not_exists2' 1183s # Testing file 'not_exists3' 1183s # Testing file 'not_exists4' 1183s # Testing file 'dir_no-execute/file' 1183s ok 5 /live-g-file/test_enumerate 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_open/.dirs/runtime 1183s # test_open: 'dir1' 1183s # test_open: 'dir_no-access' 1183s # test_open: 'target-file' 1183s # test_open: 'normal_file-symlink' 1183s # test_open: 'executable_file' 1183s # test_open: 'private_file' 1183s # test_open: 'readonly_file' 1183s # test_open: 'UTF_pr?i?lis? z' 1183s # test_open: 'pattern_file' 1183s # test_open: 'not_exists' 1183s # test_open: 'dir_no-execute/file' 1183s # test_open: 'lost_symlink' 1183s ok 6 /live-g-file/test_open 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_create/.dirs/runtime 1183s # test_create: 'dir1' 1183s # error code 3 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir1?: Is a directory 1183s # test_create: 'dir1/subdir' 1183s # error code 3 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir1/subdir?: Is a directory 1183s # test_create: 'dir2' 1183s # error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir2?: File exists 1183s # test_create: 'normal_file' 1183s # error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/normal_file?: File exists 1183s # test_create: 'executable_file' 1183s # test_create: 'private_file' 1183s # test_create: 'normal_file2' 1183s # test_create: 'UTF_pr?i?lis? z' 1183s # error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 1183s # test_create: 'dir_pr?i?lis? z' 1183s # error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_pr?i?lis? z?: File exists 1183s # test_create: 'pattern_file' 1183s # test_create: 'not_exists2' 1183s # test_create: 'not_exists3' 1183s # test_create: 'not_exists4' 1183s ok 7 /live-g-file/test_create 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_copy_move/.dirs/runtime 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir1/subdir' --> '.' 1183s # res = 0, error code 2 = Target file exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir1/subdir' --> 'target-file' 1183s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/dir1/subdir?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir2' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir-target' --> 'dir-target' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir-target' --> '.' 1183s # res = 0, error code 2 = Target file exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir-target' --> 'target-file' 1183s # res = 0, error code 4 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/dir-target?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir-target' --> 'not_exists' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir-target' --> 'dir_no-access' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'dir-target' --> 'dir_no-write' 1183s # res = 0, error code 25 = Can?t recursively copy directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'target-file' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'target-file' --> '.' 1183s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file?: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'target-file' --> 'target-file' 1183s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/target-file?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'target-file' --> 'not_exists' 1183s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/target-file?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'target-file' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/target-file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'target-file' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/target-file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file-symlink' --> '.' 1183s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/normal_file-symlink: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1183s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1183s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> '.' 1183s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/executable_file?: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> 'target-file' 1183s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/executable_file?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> 'not_exists' 1183s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/executable_file?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/executable_file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'executable_file' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/executable_file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> '.' 1183s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/private_file?: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> 'target-file' 1183s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/private_file?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> 'not_exists' 1183s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/private_file?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/private_file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'private_file' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/private_file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> '.' 1183s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/normal_file2?: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> 'target-file' 1183s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/normal_file2?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> 'not_exists' 1183s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/normal_file2?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/normal_file2?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/normal_file2?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> '.' 1183s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/UTF_pr?i?lis? z?: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> 'target-file' 1183s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/UTF_pr?i?lis? z?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> 'not_exists' 1183s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/UTF_pr?i?lis? z?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/UTF_pr?i?lis? z?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'UTF_pr?i?lis? z' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/UTF_pr?i?lis? z?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'pattern_file' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'pattern_file' --> '.' 1183s # res = 0, error code 2 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/pattern_file?: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'pattern_file' --> 'target-file' 1183s # res = 0, error code 4 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/pattern_file?: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'pattern_file' --> 'not_exists' 1183s # res = 0, error code 1 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/pattern_file?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/pattern_file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error opening file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/pattern_file?: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> 'dir-target' 1183s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> '.' 1183s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> 'target-file' 1183s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> 'not_exists' 1183s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> 'dir_no-access' 1183s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> 'dir_no-write' 1183s # res = 0, error code 1 = Error when getting information for file ?/tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists?: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'not_exists' --> 'dir-target' 1183s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'lost_symlink' --> 'dir-target' 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'lost_symlink' --> '.' 1183s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/lost_symlink: File exists 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'lost_symlink' --> 'target-file' 1183s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/target-file/lost_symlink: Not a directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'lost_symlink' --> 'not_exists' 1183s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1183s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1183s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1183s ok 8 /live-g-file/test_copy_move 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_delete/.dirs/runtime 1183s # Deleting dir1, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir1 1183s # result = 0, error = Error removing file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir1: Directory not empty 1183s # Deleting dir2, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir2 1183s # result = 0, error = Error removing file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir2: No such file or directory 1183s # Deleting executable_file, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/executable_file 1183s # result = 0, error = Error trashing file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/executable_file: No such file or directory 1183s # Deleting readonly_file, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/readonly_file 1183s # Deleting dir_pr?i?lis? z, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_pr?i?lis? z 1183s # Deleting not_exists, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists 1183s # result = 0, error = Error removing file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists: No such file or directory 1183s # Deleting not_exists, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists 1183s # result = 0, error = Error trashing file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/not_exists: No such file or directory 1183s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-execute/file 1183s # result = 0, error = Error removing file /tmp/test_live-g-file_SM9R52/testdir_live-g-file/dir_no-execute/file: No such file or directory 1183s # Deleting lost_symlink, path = /tmp/test_live-g-file_SM9R52/testdir_live-g-file/lost_symlink 1183s ok 9 /live-g-file/test_delete 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_make_directory_with_parents/.dirs/runtime 1183s # We do not have CAP_DAC_OVERRIDE or equivalent 1183s ok 10 /live-g-file/test_make_directory_with_parents 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/final_clean/.dirs/runtime 1183s # Cleaning target testing structure in '/tmp/test_live-g-file_SM9R52/testdir_live-g-file'... 1183s # deleting 'dir1' 1183s # deleting 'subdir' 1183s # deleting 'dir-target' 1183s # deleting 'dir2' 1183s # deleting 'target-file' 1183s # deleting 'normal_file-symlink' 1183s # deleting 'executable_file' 1183s # deleting 'private_file' 1183s # deleting 'normal_file2' 1183s # deleting 'UTF_pr?i?lis? z' 1183s # deleting 'pattern_file' 1183s # deleting 'lost_symlink' 1183s # deleting 'dir_no-access' 1183s # deleting 'dir_no-write' 1183s # deleting 'target-file' 1183s # deleting 'normal_file' 1183s # deleting 'normal_file-symlink' 1183s # deleting 'executable_file~' 1183s # deleting 'private_file' 1183s # deleting 'normal_file2~' 1183s # deleting 'UTF_pr?i?lis? z' 1183s # deleting 'dir_hidden' 1183s # deleting '.a-hidden-file' 1183s # deleting 'file-in-.hidden1' 1183s # deleting '.hidden' 1183s # deleting 'file-in-.hidden2' 1183s # deleting 'pattern_file' 1183s # deleting 'executable_file' 1183s # deleting 'normal_file2' 1183s # deleting 'not_exists2' 1183s # deleting 'not_exists3' 1183s # deleting 'not_exists4' 1183s # deleting 'a' 1183s ok 11 /live-g-file/final_clean 1183s # Start of test_unix_is_mountpoint tests 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1183s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_SM9R52/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1183s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1183s # End of test_unix_is_mountpoint tests 1183s # End of live-g-file tests 1183s TAP version 14 1183s # random seed: R02S59c0a23c1a3d1b909d1d502ff4fcf9e6 1183s 1..1 1183s # Start of power-profile-monitor tests 1183s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1183s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ?gio-power-profile-monitor? 1183s ok 1 /power-profile-monitor/default 1183s # End of power-profile-monitor tests 1183s TAP version 14 1183s # random seed: R02Sad733b3825c44b7f1e29be9cd5f75290 1183s 1..1 1183s # Start of gdbus tests 1183s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/home 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/cache 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/system-config2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/config 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/system-data2 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/data 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/state 1183s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_NVUW52/gdbus/proxy-unique-name/.dirs/runtime 1183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1183s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1183s ok 1 /gdbus/proxy-unique-name 1183s # End of gdbus tests 1183s TAP version 14 1183s # random seed: R02Sd2496e94ea742d058b0aa399f9691cbd 1183s 1..6 1183s # Start of environ tests 1183s # /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. 1183s ok 1 /environ/listenv 1183s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1183s ok 2 /environ/getenv 1183s ok 3 /environ/setenv 1183s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1183s ok 4 /environ/array 1183s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1183s ok 5 /environ/null 1183s # /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. 1183s ok 6 /environ/case 1183s # End of environ tests 1183s TAP version 14 1183s # random seed: R02S69d490cde0a38c027ea18aec0b9e9b43 1183s 1..4 1183s # Start of socket-client tests 1183s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3184 1183s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ?gio-proxy-resolver? 1183s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7f49180 and GSocketClientAsyncConnectData 0x7f4aea8 1183s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1183s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1183s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7f50338 for GSocketClientAsyncConnectData 0x7f4aea8 1183s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1183s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1183s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1183s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1183s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1183s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1183s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7f50338 for GSocketClientAsyncConnectData 0x7f4aea8 1183s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1184s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1184s # GLib-GIO-DEBUG: GSocketClient: Connection attempt failed: Connection refused 1184s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Could not connect to localhost: Connection refused 1184s ok 1 /socket-client/connection-fail 1184s # slow test /socket-client/connection-fail executed in 1.20 secs 1184s # Start of happy-eyeballs tests 1184s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7f4fe30 and GSocketClientAsyncConnectData 0x7f4aea8 1184s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1184s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1184s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7f50338 for GSocketClientAsyncConnectData 0x7f4aea8 1184s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1184s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1184s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1184s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1184s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1184s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1184s ok 2 /socket-client/happy-eyeballs/slow 1184s # slow test /socket-client/happy-eyeballs/slow executed in 0.60 secs 1184s # Start of cancellation tests 1184s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7f52968 and GSocketClientAsyncConnectData 0x7f4f970 1184s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1184s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Operation was cancelled 1184s ok 3 /socket-client/happy-eyeballs/cancellation/instant 1184s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x7f4f9b8 and GSocketClientAsyncConnectData 0x7f4aea8 1184s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1184s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1184s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x7f50250 for GSocketClientAsyncConnectData 0x7f4aea8 1184s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1185s # GLib-GIO-DEBUG: GSocketClient: Connection attempt delay reached, trying another enumeration 1185s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1185s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1185s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1185s # GLib-GIO-DEBUG: GSocketClient: Connection cancelled! 1185s ok 4 /socket-client/happy-eyeballs/cancellation/delayed 1185s # slow test /socket-client/happy-eyeballs/cancellation/delayed executed in 0.60 secs 1185s # End of cancellation tests 1185s # End of happy-eyeballs tests 1185s # End of socket-client tests 1185s ok - glib/gsocketclient-slow.test 1185s # Running test: glib/642026.test 1185s TAP version 14 1185s # random seed: R02S464c3ece8bf81c75a6f87938024b9e84 1185s 1..1 1185s # Start of glib tests 1185s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1185s ok 1 /glib/642026 1185s # End of glib tests 1185s ok - glib/642026.test 1185s # Running test: glib/portal-support-flatpak-full.test 1185s TAP version 14 1185s # random seed: R02S3cdcd89d6766e6f1e9e96432935d0756 1185s 1..1 1185s # Start of portal-support tests 1185s # Start of flatpak tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/runtime 1185s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_HUU852/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1185s ok 1 /portal-support/flatpak/full 1185s # End of flatpak tests 1185s # End of portal-support tests 1185s ok - glib/portal-support-flatpak-full.test 1185s # Running test: glib/gdbus-server-auth.test 1185s TAP version 14 1185s # random seed: R02Sc7aed5e23b4ade69dfa1a29e980f4ccd 1185s 1..9 1185s # Start of gdbus tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/.dirs/runtime 1185s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-5F3852 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1185s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-5F3852/dbus-vFtfx57P 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 13905 1185s ok 1 /gdbus/server-auth 1185s # Start of server-auth tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/abstract/.dirs/runtime 1185s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-N65952 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1185s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-N65952/dbus-S8YmW8BI 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1185s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1185s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 13905 1185s ok 2 /gdbus/server-auth/abstract 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/system-data2 1185s ok - glib/gdbus-server-auth.test 1185s # Running test: glib/dataset.test 1185s ok - glib/dataset.test 1185s # Running test: glib/callable-info.test 1185s ok - glib/callable-info.test 1185s # Running test: glib/rwlock.test 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/tcp/.dirs/runtime 1185s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1185s ok 3 /gdbus/server-auth/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/.dirs/runtime 1185s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-72J952 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1185s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-72J952/dbus-Pbeynepc 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 13905 1185s ok 4 /gdbus/server-auth/anonymous 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/.dirs/runtime 1185s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-3IZT52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1185s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-3IZT52/dbus-SFyDnbwU 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 13905 1185s ok 5 /gdbus/server-auth/external 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/.dirs/runtime 1185s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-VUCT52 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1185s ok 6 /gdbus/server-auth/sha1 # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1185s # Start of anonymous tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1185s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1185s ok 7 /gdbus/server-auth/anonymous/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1185s # End of anonymous tests 1185s # Start of external tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/external/require-same-user/.dirs/runtime 1185s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-YGCT52 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1185s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_921852/gdbus-server-auth-YGCT52/dbus-PIo2Scep 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 13905 1185s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1185s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1185s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1185s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=13905,uid=1000,gid=1000 1185s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 13905 1185s ok 8 /gdbus/server-auth/external/require-same-user 1185s # End of external tests 1185s # Start of sha1 tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_921852/gdbus/server-auth/sha1/tcp/.dirs/runtime 1185s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1185s ok 9 /gdbus/server-auth/sha1/tcp # SKIP https://gitlab.gnome.org/GNOME/glib/-/issues/2206 1185s # End of sha1 tests 1185s # End of server-auth tests 1185s # End of gdbus tests 1185s TAP version 14 1185s # random seed: R02S27746c9d22a8f90c329bf9525d49113a 1185s 1..14 1185s # Start of quark tests 1185s ok 1 /quark/basic 1185s ok 2 /quark/string 1185s # End of quark tests 1185s # Start of dataset tests 1185s ok 3 /dataset/basic 1185s ok 4 /dataset/id 1185s ok 5 /dataset/full 1185s ok 6 /dataset/foreach 1185s ok 7 /dataset/destroy 1185s # End of dataset tests 1185s # Start of datalist tests 1185s ok 8 /datalist/basic 1185s ok 9 /datalist/id 1185s ok 10 /datalist/recursive-clear 1185s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1185s ok 11 /datalist/id-remove-multiple 1185s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1185s ok 12 /datalist/id-remove-multiple-destroy-order 1185s ok 13 /datalist/update-atomic 1185s # Start of id-remove-multiple tests 1185s ok 14 /datalist/id-remove-multiple/resize 1185s # End of id-remove-multiple tests 1185s # End of datalist tests 1185s TAP version 14 1185s # random seed: R02Sa48ff8cb37a9072ce4604f6a1c63b1bf 1185s 1..5 1185s # Start of callable-info tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_FYKU52/callable-info/sync-function/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s ok 1 /callable-info/sync-function 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_FYKU52/callable-info/async-function/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s ok 2 /callable-info/async-function 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_FYKU52/callable-info/is-method/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s ok 3 /callable-info/is-method 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_FYKU52/callable-info/static-method/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s ok 4 /callable-info/static-method 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_FYKU52/callable-info/static-vfunc/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1185s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1185s # End of callable-info tests 1185s TAP version 14 1185s # random seed: R02Sa122ddaf059229207b4d136ca8778aa4 1185s 1..8 1185s # Start of thread tests 1185s ok 1 /thread/rwlock1 1185s ok 2 /thread/rwlock2 1185s ok 3 /thread/rwlock3 1185s ok 4 /thread/rwlock4 1185s ok 5 /thread/rwlock5 1185s ok 6 /thread/rwlock6 1190s # Executing: glib/rwlock.test 1190s ok 7 /thread/rwlock7 1190s # slow test /thread/rwlock7 executed in 4.21 secs 1190s ok - glib/rwlock.test 1190s # Running test: glib/once.test 1190s ok - glib/once.test 1190s # Running test: glib/trash.test 1190s ok - glib/trash.test 1190s # Running test: glib/boxed.test 1190s ok - glib/boxed.test 1190s # Running test: glib/regex.test 1190s ok - glib/regex.test 1190s # Running test: glib/gdbus-non-socket.test 1190s ok 8 /thread/rwlock8 1190s # End of thread tests 1190s TAP version 14 1190s # random seed: R02S63e13967b9b4ccb33478ea68728a8e77 1190s 1..5 1190s # Start of once tests 1190s # /once/single-threaded summary: Test g_once() usage from a single thread 1190s ok 1 /once/single-threaded 1190s # /once/multi-threaded summary: Test g_once() usage from multiple threads 1190s ok 2 /once/multi-threaded 1190s # End of once tests 1190s # Start of once-init tests 1190s # /once-init/single-threaded summary: Test g_once_init_{enter,leave}() usage from a single thread 1190s ok 3 /once-init/single-threaded 1190s # /once-init/multi-threaded summary: Test g_once_init_{enter,leave}() usage from multiple threads 1190s ok 4 /once-init/multi-threaded 1190s # /once-init/string summary: Test g_once_init_{enter,leave}() usage with a string 1190s ok 5 /once-init/string 1190s # End of once-init tests 1190s TAP version 14 1190s # random seed: R02S036ec63d533e45e47da691548a170f37 1190s 1..3 1190s # Start of trash tests 1190s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1190s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1190s # File: /tmp/test-trashWL0452 (parent st_dev: 86) 1190s # Home: /home/ubuntu (st_dev: 86) 1190s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1190s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1190s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1190s ok 3 /trash/long-filename 1190s # End of trash tests 1190s TAP version 14 1190s # random seed: R02Sbe4bf3ed9e1da2cb7f5ffc8c9ad8abf0 1190s 1..27 1190s # Start of boxed tests 1190s ok 1 /boxed/define 1190s ok 2 /boxed/ownership 1190s ok 3 /boxed/closure 1190s ok 4 /boxed/date 1190s ok 5 /boxed/value 1190s ok 6 /boxed/string 1190s ok 7 /boxed/hashtable 1190s ok 8 /boxed/array 1190s ok 9 /boxed/ptrarray 1190s ok 10 /boxed/regex 1190s ok 11 /boxed/varianttype 1190s ok 12 /boxed/error 1190s ok 13 /boxed/datetime 1190s ok 14 /boxed/matchinfo 1190s ok 15 /boxed/keyfile 1190s ok 16 /boxed/mainloop 1190s ok 17 /boxed/maincontext 1190s ok 18 /boxed/source 1190s ok 19 /boxed/variantbuilder 1190s ok 20 /boxed/timezone 1190s ok 21 /boxed/pollfd 1190s ok 22 /boxed/markup 1190s ok 23 /boxed/thread 1190s ok 24 /boxed/checksum 1190s ok 25 /boxed/tree 1190s ok 26 /boxed/patternspec 1190s ok 27 /boxed/rand 1190s # End of boxed tests 1190s TAP version 14 1190s # random seed: R02Sdc5598737b5fd645fabe0dda9a6fbb33 1190s 1..848 1190s # Start of regex tests 1190s ok 1 /regex/properties 1190s ok 2 /regex/class 1190s ok 3 /regex/lookahead 1190s ok 4 /regex/lookbehind 1190s ok 5 /regex/subpattern 1190s ok 6 /regex/condition 1190s ok 7 /regex/recursion 1190s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1190s ok 8 /regex/multiline 1190s ok 9 /regex/explicit-crlf 1190s ok 10 /regex/max-lookbehind 1190s ok 11 /regex/compile-errors 1190s ok 12 /regex/jit-unsupported-matching 1190s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1190s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1190s ok 13 /regex/unmatched-named-subpattern 1190s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1190s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1190s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1190s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1190s ok 14 /regex/compiled-regex-after-jit-failure 1190s # Start of new tests 1190s ok 15 /regex/new/1 1190s ok 16 /regex/new/2 1190s ok 17 /regex/new/3 1190s ok 18 /regex/new/4 1190s ok 19 /regex/new/5 1190s ok 20 /regex/new/6 1190s ok 21 /regex/new/7 1190s ok 22 /regex/new/8 1190s ok 23 /regex/new/9 1190s ok 24 /regex/new/10 1190s ok 25 /regex/new/11 1190s ok 26 /regex/new/12 1190s ok 27 /regex/new/13 1190s ok 28 /regex/new/14 1190s ok 29 /regex/new/15 1190s ok 30 /regex/new/16 1190s ok 31 /regex/new/17 1190s ok 32 /regex/new/18 1190s ok 33 /regex/new/19 1190s ok 34 /regex/new/71 1190s ok 35 /regex/new/80 1190s ok 36 /regex/new/82 1190s # End of new tests 1190s # Start of new-check-flags tests 1190s ok 37 /regex/new-check-flags/20 1190s ok 38 /regex/new-check-flags/21 1190s ok 39 /regex/new-check-flags/22 1190s ok 40 /regex/new-check-flags/23 1190s ok 41 /regex/new-check-flags/24 1190s ok 42 /regex/new-check-flags/25 1190s ok 43 /regex/new-check-flags/26 1190s ok 44 /regex/new-check-flags/27 1190s ok 45 /regex/new-check-flags/28 1190s ok 46 /regex/new-check-flags/29 1190s ok 47 /regex/new-check-flags/30 1190s ok 48 /regex/new-check-flags/31 1190s ok 49 /regex/new-check-flags/32 1190s ok 50 /regex/new-check-flags/33 1190s ok 51 /regex/new-check-flags/34 1190s ok 52 /regex/new-check-flags/35 1190s ok 53 /regex/new-check-flags/36 1190s # End of new-check-flags tests 1190s # Start of new-fail tests 1190s ok 54 /regex/new-fail/37 1190s ok 55 /regex/new-fail/38 1190s ok 56 /regex/new-fail/39 1190s ok 57 /regex/new-fail/40 1190s ok 58 /regex/new-fail/41 1190s ok 59 /regex/new-fail/42 1190s ok 60 /regex/new-fail/43 1190s ok 61 /regex/new-fail/44 1190s ok 62 /regex/new-fail/45 1190s ok 63 /regex/new-fail/46 1190s ok 64 /regex/new-fail/47 1190s ok 65 /regex/new-fail/48 1190s ok 66 /regex/new-fail/49 1190s ok 67 /regex/new-fail/50 1190s ok 68 /regex/new-fail/51 1190s ok 69 /regex/new-fail/52 1190s ok 70 /regex/new-fail/53 1190s ok 71 /regex/new-fail/54 1190s ok 72 /regex/new-fail/55 1190s ok 73 /regex/new-fail/56 1190s ok 74 /regex/new-fail/57 1190s ok 75 /regex/new-fail/58 1190s ok 76 /regex/new-fail/59 1190s ok 77 /regex/new-fail/60 1190s ok 78 /regex/new-fail/61 1190s ok 79 /regex/new-fail/62 1190s ok 80 /regex/new-fail/63 1190s ok 81 /regex/new-fail/64 1190s ok 82 /regex/new-fail/65 1190s ok 83 /regex/new-fail/66 1190s ok 84 /regex/new-fail/67 1190s ok 85 /regex/new-fail/68 1190s ok 86 /regex/new-fail/69 1190s ok 87 /regex/new-fail/70 1190s ok 88 /regex/new-fail/72 1190s ok 89 /regex/new-fail/73 1190s ok 90 /regex/new-fail/74 1190s ok 91 /regex/new-fail/75 1190s ok 92 /regex/new-fail/76 1190s ok 93 /regex/new-fail/77 1190s ok 94 /regex/new-fail/78 1190s ok 95 /regex/new-fail/79 1190s ok 96 /regex/new-fail/81 1190s ok 97 /regex/new-fail/83 1190s ok 98 /regex/new-fail/84 1190s ok 99 /regex/new-fail/85 1190s ok 100 /regex/new-fail/86 1190s ok 101 /regex/new-fail/87 1190s ok 102 /regex/new-fail/88 1190s ok 103 /regex/new-fail/89 1190s ok 104 /regex/new-fail/90 1190s ok 105 /regex/new-fail/91 1190s # End of new-fail tests 1190s # Start of match-simple tests 1190s ok 106 /regex/match-simple/92 1190s ok 107 /regex/match-simple/93 1190s ok 108 /regex/match-simple/94 1190s ok 109 /regex/match-simple/95 1190s ok 110 /regex/match-simple/96 1190s ok 111 /regex/match-simple/97 1190s ok 112 /regex/match-simple/98 1190s ok 113 /regex/match-simple/99 1190s ok 114 /regex/match-simple/100 1190s ok 115 /regex/match-simple/101 1190s ok 116 /regex/match-simple/102 1190s ok 117 /regex/match-simple/103 1190s ok 118 /regex/match-simple/104 1190s ok 119 /regex/match-simple/105 1190s ok 120 /regex/match-simple/106 1190s ok 121 /regex/match-simple/107 1190s ok 122 /regex/match-simple/108 1190s ok 123 /regex/match-simple/109 1190s ok 124 /regex/match-simple/110 1190s ok 125 /regex/match-simple/111 1190s ok 126 /regex/match-simple/112 1190s ok 127 /regex/match-simple/113 1190s ok 128 /regex/match-simple/114 1190s ok 129 /regex/match-simple/115 1190s ok 130 /regex/match-simple/116 1190s ok 131 /regex/match-simple/117 1190s ok 132 /regex/match-simple/118 1190s ok 133 /regex/match-simple/119 1190s ok 134 /regex/match-simple/120 1190s ok 135 /regex/match-simple/121 1190s ok 136 /regex/match-simple/122 1190s ok 137 /regex/match-simple/123 1190s ok 138 /regex/match-simple/124 1190s ok 139 /regex/match-simple/125 1190s ok 140 /regex/match-simple/126 1190s ok 141 /regex/match-simple/127 1190s ok 142 /regex/match-simple/128 1190s ok 143 /regex/match-simple/129 1190s ok 144 /regex/match-simple/130 1190s ok 145 /regex/match-simple/131 1190s ok 146 /regex/match-simple/132 1190s ok 147 /regex/match-simple/133 1190s ok 148 /regex/match-simple/134 1190s ok 149 /regex/match-simple/135 1190s ok 150 /regex/match-simple/136 1190s ok 151 /regex/match-simple/137 1190s ok 152 /regex/match-simple/138 1190s ok 153 /regex/match-simple/139 1190s ok 154 /regex/match-simple/140 1190s ok 155 /regex/match-simple/141 1190s ok 156 /regex/match-simple/142 1190s ok 157 /regex/match-simple/143 1190s ok 158 /regex/match-simple/144 1190s ok 159 /regex/match-simple/145 1190s ok 160 /regex/match-simple/146 1190s ok 161 /regex/match-simple/147 1190s ok 162 /regex/match-simple/148 1190s ok 163 /regex/match-simple/149 1190s ok 164 /regex/match-simple/150 1190s ok 165 /regex/match-simple/151 1190s ok 166 /regex/match-simple/152 1190s ok 167 /regex/match-simple/153 1190s ok 168 /regex/match-simple/154 1190s ok 169 /regex/match-simple/155 1190s ok 170 /regex/match-simple/156 1190s ok 171 /regex/match-simple/157 1190s ok 172 /regex/match-simple/158 1190s ok 173 /regex/match-simple/159 1190s ok 174 /regex/match-simple/160 1190s ok 175 /regex/match-simple/161 1190s ok 176 /regex/match-simple/162 1190s ok 177 /regex/match-simple/163 1190s ok 178 /regex/match-simple/164 1190s # End of match-simple tests 1190s # Start of match-simple-optimized tests 1190s ok 179 /regex/match-simple-optimized/92 1190s ok 180 /regex/match-simple-optimized/93 1190s ok 181 /regex/match-simple-optimized/94 1190s ok 182 /regex/match-simple-optimized/95 1190s ok 183 /regex/match-simple-optimized/96 1190s ok 184 /regex/match-simple-optimized/97 1190s ok 185 /regex/match-simple-optimized/98 1190s ok 186 /regex/match-simple-optimized/99 1190s ok 187 /regex/match-simple-optimized/100 1190s ok 188 /regex/match-simple-optimized/101 1190s ok 189 /regex/match-simple-optimized/102 1190s ok 190 /regex/match-simple-optimized/103 1190s ok 191 /regex/match-simple-optimized/104 1190s ok 192 /regex/match-simple-optimized/105 1190s ok 193 /regex/match-simple-optimized/106 1190s ok 194 /regex/match-simple-optimized/107 1190s ok 195 /regex/match-simple-optimized/108 1190s ok 196 /regex/match-simple-optimized/109 1190s ok 197 /regex/match-simple-optimized/110 1190s ok 198 /regex/match-simple-optimized/111 1190s ok 199 /regex/match-simple-optimized/112 1190s ok 200 /regex/match-simple-optimized/113 1190s ok 201 /regex/match-simple-optimized/114 1190s ok 202 /regex/match-simple-optimized/115 1190s ok 203 /regex/match-simple-optimized/116 1190s ok 204 /regex/match-simple-optimized/117 1190s ok 205 /regex/match-simple-optimized/118 1190s ok 206 /regex/match-simple-optimized/119 1190s ok 207 /regex/match-simple-optimized/120 1190s ok 208 /regex/match-simple-optimized/121 1190s ok 209 /regex/match-simple-optimized/122 1190s ok 210 /regex/match-simple-optimized/123 1190s ok 211 /regex/match-simple-optimized/124 1190s ok 212 /regex/match-simple-optimized/125 1190s ok 213 /regex/match-simple-optimized/126 1190s ok 214 /regex/match-simple-optimized/127 1190s ok 215 /regex/match-simple-optimized/128 1190s ok 216 /regex/match-simple-optimized/129 1190s ok 217 /regex/match-simple-optimized/130 1190s ok 218 /regex/match-simple-optimized/131 1190s ok 219 /regex/match-simple-optimized/132 1190s ok 220 /regex/match-simple-optimized/133 1190s ok 221 /regex/match-simple-optimized/134 1190s ok 222 /regex/match-simple-optimized/135 1190s ok 223 /regex/match-simple-optimized/136 1190s ok 224 /regex/match-simple-optimized/137 1190s ok 225 /regex/match-simple-optimized/138 1190s ok 226 /regex/match-simple-optimized/139 1190s ok 227 /regex/match-simple-optimized/140 1190s ok 228 /regex/match-simple-optimized/141 1190s ok 229 /regex/match-simple-optimized/142 1190s ok 230 /regex/match-simple-optimized/143 1190s ok 231 /regex/match-simple-optimized/144 1190s ok 232 /regex/match-simple-optimized/145 1190s ok 233 /regex/match-simple-optimized/146 1190s ok 234 /regex/match-simple-optimized/147 1190s ok 235 /regex/match-simple-optimized/148 1190s ok 236 /regex/match-simple-optimized/149 1190s ok 237 /regex/match-simple-optimized/150 1190s ok 238 /regex/match-simple-optimized/151 1190s ok 239 /regex/match-simple-optimized/152 1190s ok 240 /regex/match-simple-optimized/153 1190s ok 241 /regex/match-simple-optimized/154 1190s ok 242 /regex/match-simple-optimized/155 1190s ok 243 /regex/match-simple-optimized/156 1190s ok 244 /regex/match-simple-optimized/157 1190s ok 245 /regex/match-simple-optimized/158 1190s ok 246 /regex/match-simple-optimized/159 1190s ok 247 /regex/match-simple-optimized/160 1190s ok 248 /regex/match-simple-optimized/161 1190s ok 249 /regex/match-simple-optimized/162 1190s ok 250 /regex/match-simple-optimized/163 1190s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1190s ok 251 /regex/match-simple-optimized/164 1190s # End of match-simple-optimized tests 1190s # Start of match tests 1190s ok 252 /regex/match/165 1190s ok 253 /regex/match/166 1190s ok 254 /regex/match/167 1190s ok 255 /regex/match/168 1190s ok 256 /regex/match/169 1190s ok 257 /regex/match/170 1190s ok 258 /regex/match/171 1190s ok 259 /regex/match/172 1190s ok 260 /regex/match/173 1190s ok 261 /regex/match/174 1190s ok 262 /regex/match/175 1190s ok 263 /regex/match/176 1190s ok 264 /regex/match/177 1190s ok 265 /regex/match/178 1190s ok 266 /regex/match/179 1190s ok 267 /regex/match/180 1190s ok 268 /regex/match/181 1190s ok 269 /regex/match/182 1190s ok 270 /regex/match/183 1190s ok 271 /regex/match/184 1190s ok 272 /regex/match/185 1190s ok 273 /regex/match/186 1190s ok 274 /regex/match/187 1190s ok 275 /regex/match/188 1190s ok 276 /regex/match/189 1190s ok 277 /regex/match/190 1190s ok 278 /regex/match/191 1190s ok 279 /regex/match/192 1190s ok 280 /regex/match/193 1190s ok 281 /regex/match/194 1190s ok 282 /regex/match/195 1190s ok 283 /regex/match/196 1190s ok 284 /regex/match/197 1190s ok 285 /regex/match/198 1190s ok 286 /regex/match/199 1190s ok 287 /regex/match/200 1190s ok 288 /regex/match/201 1190s ok 289 /regex/match/202 1190s ok 290 /regex/match/203 1190s ok 291 /regex/match/204 1190s ok 292 /regex/match/205 1190s ok 293 /regex/match/206 1190s ok 294 /regex/match/207 1190s ok 295 /regex/match/208 1190s ok 296 /regex/match/209 1190s ok 297 /regex/match/210 1190s ok 298 /regex/match/211 1190s ok 299 /regex/match/212 1190s ok 300 /regex/match/213 1190s ok 301 /regex/match/214 1190s ok 302 /regex/match/215 1190s ok 303 /regex/match/216 1190s ok 304 /regex/match/217 1190s ok 305 /regex/match/218 1190s ok 306 /regex/match/219 1190s ok 307 /regex/match/220 1190s ok 308 /regex/match/221 1190s ok 309 /regex/match/222 1190s ok 310 /regex/match/223 1190s ok 311 /regex/match/224 1190s ok 312 /regex/match/225 1190s ok 313 /regex/match/226 1190s ok 314 /regex/match/227 1190s ok 315 /regex/match/228 1190s ok 316 /regex/match/229 1190s ok 317 /regex/match/230 1190s ok 318 /regex/match/231 1190s ok 319 /regex/match/232 1190s ok 320 /regex/match/233 1190s ok 321 /regex/match/234 1190s ok 322 /regex/match/235 1190s ok 323 /regex/match/236 1190s ok 324 /regex/match/237 1190s ok 325 /regex/match/238 1190s ok 326 /regex/match/239 1190s ok 327 /regex/match/240 1190s ok 328 /regex/match/241 1190s ok 329 /regex/match/242 1190s ok 330 /regex/match/243 1190s ok 331 /regex/match/244 1190s ok 332 /regex/match/245 1190s ok 333 /regex/match/246 1190s ok 334 /regex/match/partial281 1190s ok 335 /regex/match/partial282 1190s ok 336 /regex/match/partial283 1190s ok 337 /regex/match/partial284 1190s ok 338 /regex/match/partial285 1190s ok 339 /regex/match/partial286 1190s ok 340 /regex/match/partial287 1190s ok 341 /regex/match/partial288 1190s ok 342 /regex/match/partial289 1190s ok 343 /regex/match/partial290 1190s ok 344 /regex/match/partial291 1190s ok 345 /regex/match/partial292 1190s ok 346 /regex/match/partial293 1190s ok 347 /regex/match/partial294 1190s ok 348 /regex/match/partial295 1190s ok 349 /regex/match/partial296 1190s ok 350 /regex/match/partial297 1190s ok 351 /regex/match/partial298 1190s ok 352 /regex/match/partial299 1190s ok 353 /regex/match/partial300 1190s ok 354 /regex/match/partial301 1190s ok 355 /regex/match/partial302 1190s # Start of next0 tests 1190s ok 356 /regex/match/next0/247 1190s ok 357 /regex/match/next0/248 1190s ok 358 /regex/match/next0/249 1190s ok 359 /regex/match/next0/250 1190s # End of next0 tests 1190s # Start of next1 tests 1190s ok 360 /regex/match/next1/251 1190s ok 361 /regex/match/next1/252 1190s ok 362 /regex/match/next1/253 1190s ok 363 /regex/match/next1/254 1190s ok 364 /regex/match/next1/255 1190s # End of next1 tests 1190s # Start of next2 tests 1190s ok 365 /regex/match/next2/256 1190s ok 366 /regex/match/next2/257 1190s ok 367 /regex/match/next2/258 1190s ok 368 /regex/match/next2/259 1190s ok 369 /regex/match/next2/260 1190s ok 370 /regex/match/next2/261 1190s ok 371 /regex/match/next2/262 1190s ok 372 /regex/match/next2/263 1190s # End of next2 tests 1190s # Start of next3 tests 1190s ok 373 /regex/match/next3/264 1190s ok 374 /regex/match/next3/265 1190s ok 375 /regex/match/next3/266 1190s ok 376 /regex/match/next3/267 1190s ok 377 /regex/match/next3/268 1190s ok 378 /regex/match/next3/269 1190s # End of next3 tests 1190s # Start of next4 tests 1190s ok 379 /regex/match/next4/270 1190s # End of next4 tests 1190s # Start of count tests 1190s ok 380 /regex/match/count/271 1190s ok 381 /regex/match/count/272 1190s ok 382 /regex/match/count/273 1190s ok 383 /regex/match/count/274 1190s ok 384 /regex/match/count/275 1190s ok 385 /regex/match/count/276 1190s ok 386 /regex/match/count/277 1190s ok 387 /regex/match/count/278 1190s ok 388 /regex/match/count/279 1190s ok 389 /regex/match/count/280 1190s # End of count tests 1190s # Start of count-optimized tests 1190s ok 390 /regex/match/count-optimized/271 1190s ok 391 /regex/match/count-optimized/272 1190s ok 392 /regex/match/count-optimized/273 1190s ok 393 /regex/match/count-optimized/274 1190s ok 394 /regex/match/count-optimized/275 1190s ok 395 /regex/match/count-optimized/276 1190s ok 396 /regex/match/count-optimized/277 1190s ok 397 /regex/match/count-optimized/278 1190s ok 398 /regex/match/count-optimized/279 1190s ok 399 /regex/match/count-optimized/280 1190s # End of count-optimized tests 1190s # Start of partial-optimized tests 1190s ok 400 /regex/match/partial-optimized/281 1190s ok 401 /regex/match/partial-optimized/282 1190s ok 402 /regex/match/partial-optimized/283 1190s ok 403 /regex/match/partial-optimized/284 1190s ok 404 /regex/match/partial-optimized/285 1190s ok 405 /regex/match/partial-optimized/286 1190s ok 406 /regex/match/partial-optimized/287 1190s ok 407 /regex/match/partial-optimized/288 1190s ok 408 /regex/match/partial-optimized/289 1190s ok 409 /regex/match/partial-optimized/290 1190s ok 410 /regex/match/partial-optimized/291 1190s ok 411 /regex/match/partial-optimized/292 1190s ok 412 /regex/match/partial-optimized/293 1190s ok 413 /regex/match/partial-optimized/294 1190s ok 414 /regex/match/partial-optimized/295 1190s ok 415 /regex/match/partial-optimized/296 1190s ok 416 /regex/match/partial-optimized/297 1190s ok 417 /regex/match/partial-optimized/298 1190s ok 418 /regex/match/partial-optimized/299 1190s ok 419 /regex/match/partial-optimized/300 1190s ok 420 /regex/match/partial-optimized/301 1190s ok 421 /regex/match/partial-optimized/302 1190s # End of partial-optimized tests 1190s # Start of subpattern tests 1190s ok 422 /regex/match/subpattern/303 1190s ok 423 /regex/match/subpattern/304 1190s ok 424 /regex/match/subpattern/305 1190s ok 425 /regex/match/subpattern/306 1190s ok 426 /regex/match/subpattern/307 1190s ok 427 /regex/match/subpattern/308 1190s ok 428 /regex/match/subpattern/309 1190s ok 429 /regex/match/subpattern/310 1190s ok 430 /regex/match/subpattern/311 1190s ok 431 /regex/match/subpattern/312 1190s ok 432 /regex/match/subpattern/313 1190s ok 433 /regex/match/subpattern/314 1190s ok 434 /regex/match/subpattern/315 1190s # Start of named tests 1190s # Start of dupnames tests 1190s ok 435 /regex/match/subpattern/named/dupnames/325 1190s ok 436 /regex/match/subpattern/named/dupnames/326 1190s ok 437 /regex/match/subpattern/named/dupnames/327 1190s ok 438 /regex/match/subpattern/named/dupnames/328 1190s ok 439 /regex/match/subpattern/named/dupnames/329 1190s # End of dupnames tests 1190s # End of named tests 1190s # End of subpattern tests 1190s # Start of subpattern-optimized tests 1190s ok 440 /regex/match/subpattern-optimized/303 1190s ok 441 /regex/match/subpattern-optimized/304 1190s ok 442 /regex/match/subpattern-optimized/305 1190s ok 443 /regex/match/subpattern-optimized/306 1190s ok 444 /regex/match/subpattern-optimized/307 1190s ok 445 /regex/match/subpattern-optimized/308 1190s ok 446 /regex/match/subpattern-optimized/309 1190s ok 447 /regex/match/subpattern-optimized/310 1190s ok 448 /regex/match/subpattern-optimized/311 1190s ok 449 /regex/match/subpattern-optimized/312 1190s ok 450 /regex/match/subpattern-optimized/313 1190s ok 451 /regex/match/subpattern-optimized/314 1190s ok 452 /regex/match/subpattern-optimized/315 1190s # End of subpattern-optimized tests 1190s # Start of named tests 1190s # Start of subpattern tests 1190s ok 453 /regex/match/named/subpattern/316 1190s ok 454 /regex/match/named/subpattern/317 1190s ok 455 /regex/match/named/subpattern/318 1190s ok 456 /regex/match/named/subpattern/319 1190s ok 457 /regex/match/named/subpattern/320 1190s ok 458 /regex/match/named/subpattern/321 1190s ok 459 /regex/match/named/subpattern/322 1190s ok 460 /regex/match/named/subpattern/323 1190s ok 461 /regex/match/named/subpattern/324 1190s ok 462 /regex/match/named/subpattern/330 1190s ok 463 /regex/match/named/subpattern/331 1190s ok 464 /regex/match/named/subpattern/332 1190s ok 465 /regex/match/named/subpattern/333 1190s ok 466 /regex/match/named/subpattern/334 1190s # End of subpattern tests 1190s # End of named tests 1190s # End of match tests 1190s # Start of match-optimized tests 1190s ok 467 /regex/match-optimized/165 1190s ok 468 /regex/match-optimized/166 1190s ok 469 /regex/match-optimized/167 1190s ok 470 /regex/match-optimized/168 1190s ok 471 /regex/match-optimized/169 1190s ok 472 /regex/match-optimized/170 1190s ok 473 /regex/match-optimized/171 1190s ok 474 /regex/match-optimized/172 1190s ok 475 /regex/match-optimized/173 1190s ok 476 /regex/match-optimized/174 1190s ok 477 /regex/match-optimized/175 1190s ok 478 /regex/match-optimized/176 1190s ok 479 /regex/match-optimized/177 1190s ok 480 /regex/match-optimized/178 1190s ok 481 /regex/match-optimized/179 1190s ok 482 /regex/match-optimized/180 1190s ok 483 /regex/match-optimized/181 1190s ok 484 /regex/match-optimized/182 1190s ok 485 /regex/match-optimized/183 1190s ok 486 /regex/match-optimized/184 1190s ok 487 /regex/match-optimized/185 1190s ok 488 /regex/match-optimized/186 1190s ok 489 /regex/match-optimized/187 1190s ok 490 /regex/match-optimized/188 1190s ok 491 /regex/match-optimized/189 1190s ok 492 /regex/match-optimized/190 1190s ok 493 /regex/match-optimized/191 1190s ok 494 /regex/match-optimized/192 1190s ok 495 /regex/match-optimized/193 1190s ok 496 /regex/match-optimized/194 1190s ok 497 /regex/match-optimized/195 1190s ok 498 /regex/match-optimized/196 1190s ok 499 /regex/match-optimized/197 1190s ok 500 /regex/match-optimized/198 1190s ok 501 /regex/match-optimized/199 1190s ok 502 /regex/match-optimized/200 1190s ok 503 /regex/match-optimized/201 1190s ok 504 /regex/match-optimized/202 1190s ok 505 /regex/match-optimized/203 1190s ok 506 /regex/match-optimized/204 1190s ok 507 /regex/match-optimized/205 1190s ok 508 /regex/match-optimized/206 1190s ok 509 /regex/match-optimized/207 1190s ok 510 /regex/match-optimized/208 1190s ok 511 /regex/match-optimized/209 1190s ok 512 /regex/match-optimized/210 1190s ok 513 /regex/match-optimized/211 1190s ok 514 /regex/match-optimized/212 1190s ok 515 /regex/match-optimized/213 1190s ok 516 /regex/match-optimized/214 1190s ok 517 /regex/match-optimized/215 1190s ok 518 /regex/match-optimized/216 1190s ok 519 /regex/match-optimized/217 1190s ok 520 /regex/match-optimized/218 1190s ok 521 /regex/match-optimized/219 1190s ok 522 /regex/match-optimized/220 1190s ok 523 /regex/match-optimized/221 1190s ok 524 /regex/match-optimized/222 1190s ok 525 /regex/match-optimized/223 1190s ok 526 /regex/match-optimized/224 1190s ok 527 /regex/match-optimized/225 1190s ok 528 /regex/match-optimized/226 1190s ok 529 /regex/match-optimized/227 1190s ok 530 /regex/match-optimized/228 1190s ok 531 /regex/match-optimized/229 1190s ok 532 /regex/match-optimized/230 1190s ok 533 /regex/match-optimized/231 1190s ok 534 /regex/match-optimized/232 1190s ok 535 /regex/match-optimized/233 1190s ok 536 /regex/match-optimized/234 1190s ok 537 /regex/match-optimized/235 1190s ok 538 /regex/match-optimized/236 1190s ok 539 /regex/match-optimized/237 1190s ok 540 /regex/match-optimized/238 1190s ok 541 /regex/match-optimized/239 1190s ok 542 /regex/match-optimized/240 1190s ok 543 /regex/match-optimized/241 1190s ok 544 /regex/match-optimized/242 1190s ok 545 /regex/match-optimized/243 1190s ok 546 /regex/match-optimized/244 1190s ok 547 /regex/match-optimized/245 1190s ok 548 /regex/match-optimized/246 1190s # End of match-optimized tests 1190s # Start of fetch-all0 tests 1190s ok 549 /regex/fetch-all0/335 1190s ok 550 /regex/fetch-all0/336 1190s # End of fetch-all0 tests 1190s # Start of fetch-all1 tests 1190s ok 551 /regex/fetch-all1/337 1190s ok 552 /regex/fetch-all1/338 1190s ok 553 /regex/fetch-all1/339 1190s # End of fetch-all1 tests 1190s # Start of fetch-all2 tests 1190s ok 554 /regex/fetch-all2/340 1190s ok 555 /regex/fetch-all2/341 1190s ok 556 /regex/fetch-all2/342 1190s # End of fetch-all2 tests 1190s # Start of fetch-all3 tests 1190s ok 557 /regex/fetch-all3/343 1190s ok 558 /regex/fetch-all3/344 1190s ok 559 /regex/fetch-all3/345 1190s ok 560 /regex/fetch-all3/346 1190s ok 561 /regex/fetch-all3/347 1190s # End of fetch-all3 tests 1190s # Start of split tests 1190s # Start of simple0 tests 1190s ok 562 /regex/split/simple0/348 1190s ok 563 /regex/split/simple0/349 1190s ok 564 /regex/split/simple0/364 1190s ok 565 /regex/split/simple0/365 1190s # End of simple0 tests 1190s # Start of simple1 tests 1190s ok 566 /regex/split/simple1/350 1190s ok 567 /regex/split/simple1/351 1190s # End of simple1 tests 1190s # Start of simple2 tests 1190s ok 568 /regex/split/simple2/352 1190s ok 569 /regex/split/simple2/358 1190s ok 570 /regex/split/simple2/360 1190s # End of simple2 tests 1190s # Start of simple3 tests 1190s ok 571 /regex/split/simple3/353 1190s ok 572 /regex/split/simple3/354 1190s ok 573 /regex/split/simple3/355 1190s ok 574 /regex/split/simple3/356 1190s ok 575 /regex/split/simple3/357 1190s ok 576 /regex/split/simple3/359 1190s ok 577 /regex/split/simple3/361 1190s ok 578 /regex/split/simple3/362 1190s ok 579 /regex/split/simple3/363 1190s # End of simple3 tests 1190s # End of split tests 1190s # Start of split0 tests 1190s ok 580 /regex/split0/366 1190s ok 581 /regex/split0/368 1190s # End of split0 tests 1190s # Start of full-split0 tests 1190s ok 582 /regex/full-split0/367 1190s ok 583 /regex/full-split0/369 1190s ok 584 /regex/full-split0/370 1190s ok 585 /regex/full-split0/371 1190s ok 586 /regex/full-split0/372 1190s # End of full-split0 tests 1190s # Start of split1 tests 1190s ok 587 /regex/split1/373 1190s ok 588 /regex/split1/376 1190s # End of split1 tests 1190s # Start of full-split1 tests 1190s ok 589 /regex/full-split1/374 1190s ok 590 /regex/full-split1/375 1190s ok 591 /regex/full-split1/377 1190s ok 592 /regex/full-split1/378 1190s ok 593 /regex/full-split1/404 1190s # End of full-split1 tests 1190s # Start of split2 tests 1190s ok 594 /regex/split2/379 1190s ok 595 /regex/split2/383 1190s ok 596 /regex/split2/395 1190s # End of split2 tests 1190s # Start of full-split2 tests 1190s ok 597 /regex/full-split2/380 1190s ok 598 /regex/full-split2/381 1190s ok 599 /regex/full-split2/382 1190s ok 600 /regex/full-split2/384 1190s ok 601 /regex/full-split2/396 1190s ok - glib/gdbus-non-socket.test 1190s # Running test: glib/testfilemonitor.test 1190s ok 602 /regex/full-split2/399 1190s ok 603 /regex/full-split2/405 1190s # End of full-split2 tests 1190s # Start of split3 tests 1190s ok 604 /regex/split3/385 1190s ok 605 /regex/split3/387 1190s ok 606 /regex/split3/389 1190s ok 607 /regex/split3/391 1190s ok 608 /regex/split3/393 1190s ok 609 /regex/split3/397 1190s ok 610 /regex/split3/400 1190s ok 611 /regex/split3/402 1190s # End of split3 tests 1190s # Start of full-split3 tests 1190s ok 612 /regex/full-split3/386 1190s ok 613 /regex/full-split3/388 1190s ok 614 /regex/full-split3/390 1190s ok 615 /regex/full-split3/392 1190s ok 616 /regex/full-split3/394 1190s ok 617 /regex/full-split3/398 1190s ok 618 /regex/full-split3/401 1190s ok 619 /regex/full-split3/403 1190s ok 620 /regex/full-split3/406 1190s ok 621 /regex/full-split3/407 1190s # End of full-split3 tests 1190s # Start of check-repacement tests 1190s ok 622 /regex/check-repacement/408 1190s ok 623 /regex/check-repacement/409 1190s ok 624 /regex/check-repacement/410 1190s ok 625 /regex/check-repacement/411 1190s ok 626 /regex/check-repacement/412 1190s ok 627 /regex/check-repacement/413 1190s ok 628 /regex/check-repacement/414 1190s ok 629 /regex/check-repacement/415 1190s # End of check-repacement tests 1190s # Start of expand tests 1190s ok 630 /regex/expand/416 1190s ok 631 /regex/expand/417 1190s ok 632 /regex/expand/418 1190s ok 633 /regex/expand/419 1190s ok 634 /regex/expand/420 1190s ok 635 /regex/expand/421 1190s ok 636 /regex/expand/422 1190s ok 637 /regex/expand/423 1190s ok 638 /regex/expand/424 1190s ok 639 /regex/expand/425 1190s ok 640 /regex/expand/426 1190s ok 641 /regex/expand/427 1190s ok 642 /regex/expand/428 1190s ok 643 /regex/expand/429 1190s ok 644 /regex/expand/430 1190s ok 645 /regex/expand/431 1190s ok 646 /regex/expand/432 1190s ok 647 /regex/expand/433 1190s ok 648 /regex/expand/434 1190s ok 649 /regex/expand/435 1190s ok 650 /regex/expand/436 1190s ok 651 /regex/expand/437 1190s ok 652 /regex/expand/438 1190s ok 653 /regex/expand/439 1190s ok 654 /regex/expand/440 1190s ok 655 /regex/expand/441 1190s ok 656 /regex/expand/442 1190s ok 657 /regex/expand/443 1190s ok 658 /regex/expand/444 1190s ok 659 /regex/expand/445 1190s ok 660 /regex/expand/446 1190s ok 661 /regex/expand/447 1190s ok 662 /regex/expand/448 1190s ok 663 /regex/expand/449 1190s ok 664 /regex/expand/450 1190s ok 665 /regex/expand/451 1190s ok 666 /regex/expand/452 1190s ok 667 /regex/expand/453 1190s ok 668 /regex/expand/454 1190s ok 669 /regex/expand/455 1190s ok 670 /regex/expand/456 1190s ok 671 /regex/expand/457 1190s ok 672 /regex/expand/458 1190s ok 673 /regex/expand/459 1190s ok 674 /regex/expand/460 1190s ok 675 /regex/expand/461 1190s ok 676 /regex/expand/462 1190s ok 677 /regex/expand/463 1190s ok 678 /regex/expand/464 1190s ok 679 /regex/expand/465 1190s ok 680 /regex/expand/466 1190s ok 681 /regex/expand/467 1190s ok 682 /regex/expand/468 1190s ok 683 /regex/expand/469 1190s ok 684 /regex/expand/470 1190s ok 685 /regex/expand/471 1190s ok 686 /regex/expand/472 1190s ok 687 /regex/expand/473 1190s ok 688 /regex/expand/474 1190s ok 689 /regex/expand/475 1190s ok 690 /regex/expand/476 1190s ok 691 /regex/expand/477 1190s ok 692 /regex/expand/478 1190s ok 693 /regex/expand/479 1190s ok 694 /regex/expand/480 1190s ok 695 /regex/expand/481 1190s # End of expand tests 1190s # Start of replace tests 1190s ok 696 /regex/replace/482 1190s ok 697 /regex/replace/483 1190s ok 698 /regex/replace/484 1190s ok 699 /regex/replace/485 1190s ok 700 /regex/replace/486 1190s ok 701 /regex/replace/487 1190s ok 702 /regex/replace/488 1190s ok 703 /regex/replace/489 1190s ok 704 /regex/replace/490 1190s ok 705 /regex/replace/491 1190s ok 706 /regex/replace/492 1190s ok 707 /regex/replace/493 1190s ok 708 /regex/replace/494 1190s ok 709 /regex/replace/495 1190s ok 710 /regex/replace/496 1190s ok 711 /regex/replace/497 1190s ok 712 /regex/replace/498 1190s ok 713 /regex/replace/499 1190s ok 714 /regex/replace/500 1190s ok 715 /regex/replace/501 1190s ok 716 /regex/replace/502 1190s ok 717 /regex/replace/503 1190s ok 718 /regex/replace/504 1190s ok 719 /regex/replace/505 1190s ok 720 /regex/replace/506 1190s ok 721 /regex/replace/507 1190s ok 722 /regex/replace/508 1190s ok 723 /regex/replace/509 1190s # End of replace tests 1190s # Start of replace-optimized tests 1190s ok 724 /regex/replace-optimized/482 1190s ok 725 /regex/replace-optimized/483 1190s ok 726 /regex/replace-optimized/484 1190s ok 727 /regex/replace-optimized/485 1190s ok 728 /regex/replace-optimized/486 1190s ok 729 /regex/replace-optimized/487 1190s ok 730 /regex/replace-optimized/488 1190s ok 731 /regex/replace-optimized/489 1190s ok 732 /regex/replace-optimized/490 1190s ok 733 /regex/replace-optimized/491 1190s ok 734 /regex/replace-optimized/492 1190s ok 735 /regex/replace-optimized/493 1190s ok 736 /regex/replace-optimized/494 1190s ok 737 /regex/replace-optimized/495 1190s ok 738 /regex/replace-optimized/496 1190s ok 739 /regex/replace-optimized/497 1190s ok 740 /regex/replace-optimized/498 1190s ok 741 /regex/replace-optimized/499 1190s ok 742 /regex/replace-optimized/500 1190s ok 743 /regex/replace-optimized/501 1190s ok 744 /regex/replace-optimized/502 1190s ok 745 /regex/replace-optimized/503 1190s ok 746 /regex/replace-optimized/504 1190s ok 747 /regex/replace-optimized/505 1190s ok 748 /regex/replace-optimized/506 1190s ok 749 /regex/replace-optimized/507 1190s ok 750 /regex/replace-optimized/508 1190s ok 751 /regex/replace-optimized/509 1190s # End of replace-optimized tests 1190s # Start of replace-literally tests 1190s ok 752 /regex/replace-literally/510 1190s ok 753 /regex/replace-literally/511 1190s ok 754 /regex/replace-literally/512 1190s ok 755 /regex/replace-literally/513 1190s ok 756 /regex/replace-literally/514 1190s ok 757 /regex/replace-literally/515 1190s ok 758 /regex/replace-literally/516 1190s ok 759 /regex/replace-literally/517 1190s ok 760 /regex/replace-literally/518 1190s ok 761 /regex/replace-literally/519 1190s ok 762 /regex/replace-literally/520 1190s ok 763 /regex/replace-literally/521 1190s ok 764 /regex/replace-literally/522 1190s ok 765 /regex/replace-literally/523 1190s ok 766 /regex/replace-literally/524 1190s ok 767 /regex/replace-literally/525 1190s ok 768 /regex/replace-literally/526 1190s ok 769 /regex/replace-literally/527 1190s ok 770 /regex/replace-literally/528 1190s ok 771 /regex/replace-literally/529 1190s # End of replace-literally tests 1190s # Start of string-number tests 1190s ok 772 /regex/string-number/530 1190s ok 773 /regex/string-number/531 1190s ok 774 /regex/string-number/532 1190s ok 775 /regex/string-number/533 1190s ok 776 /regex/string-number/534 1190s ok 777 /regex/string-number/535 1190s ok 778 /regex/string-number/536 1190s ok 779 /regex/string-number/537 1190s ok 780 /regex/string-number/538 1190s ok 781 /regex/string-number/539 1190s ok 782 /regex/string-number/540 1190s ok 783 /regex/string-number/541 1190s ok 784 /regex/string-number/542 1190s ok 785 /regex/string-number/543 1190s ok 786 /regex/string-number/544 1190s # End of string-number tests 1190s # Start of escape_nul tests 1190s ok 787 /regex/escape_nul/545 1190s ok 788 /regex/escape_nul/546 1190s ok 789 /regex/escape_nul/547 1190s ok 790 /regex/escape_nul/548 1190s ok 791 /regex/escape_nul/549 1190s ok 792 /regex/escape_nul/550 1190s ok 793 /regex/escape_nul/551 1190s ok 794 /regex/escape_nul/552 1190s ok 795 /regex/escape_nul/553 1190s ok 796 /regex/escape_nul/554 1190s ok 797 /regex/escape_nul/555 1190s ok 798 /regex/escape_nul/556 1190s ok 799 /regex/escape_nul/557 1190s ok 800 /regex/escape_nul/558 1190s ok 801 /regex/escape_nul/559 1190s # End of escape_nul tests 1190s # Start of escape tests 1190s ok 802 /regex/escape/560 1190s ok 803 /regex/escape/561 1190s ok 804 /regex/escape/562 1190s ok 805 /regex/escape/563 1190s ok 806 /regex/escape/564 1190s ok 807 /regex/escape/565 1190s ok 808 /regex/escape/566 1190s ok 809 /regex/escape/567 1190s ok 810 /regex/escape/568 1190s ok 811 /regex/escape/569 1190s ok 812 /regex/escape/570 1190s ok 813 /regex/escape/571 1190s ok 814 /regex/escape/572 1190s ok 815 /regex/escape/573 1190s ok 816 /regex/escape/574 1190s ok 817 /regex/escape/575 1190s ok 818 /regex/escape/576 1190s ok 819 /regex/escape/577 1190s # End of escape tests 1190s # Start of match-all0 tests 1190s ok 820 /regex/match-all0/578 1190s ok 821 /regex/match-all0/580 1190s # End of match-all0 tests 1190s # Start of match-all-full0 tests 1190s ok 822 /regex/match-all-full0/579 1190s ok 823 /regex/match-all-full0/581 1190s ok 824 /regex/match-all-full0/582 1190s ok 825 /regex/match-all-full0/583 1190s # End of match-all-full0 tests 1190s # Start of match-all1 tests 1190s ok 826 /regex/match-all1/584 1190s ok 827 /regex/match-all1/586 1190s ok 828 /regex/match-all1/591 1190s # End of match-all1 tests 1190s # Start of match-all-full1 tests 1190s ok 829 /regex/match-all-full1/585 1190s ok - glib/testfilemonitor.test 1190s # Running test: glib/gdbus-address-get-session.test 1190s ok - glib/gdbus-address-get-session.test 1190s # Running test: glib/flags.test 1190s ok - glib/flags.test 1190s # Running test: glib/gdbus-peer.test 1190s ok 830 /regex/match-all-full1/587 1190s ok 831 /regex/match-all-full1/588 1190s ok 832 /regex/match-all-full1/589 1190s ok 833 /regex/match-all-full1/590 1190s ok 834 /regex/match-all-full1/592 1190s # End of match-all-full1 tests 1190s # Start of match-all2 tests 1190s ok 835 /regex/match-all2/593 1190s ok 836 /regex/match-all2/595 1190s ok 837 /regex/match-all2/597 1190s # End of match-all2 tests 1190s # Start of match-all-full2 tests 1190s ok 838 /regex/match-all-full2/594 1190s ok 839 /regex/match-all-full2/596 1190s ok 840 /regex/match-all-full2/598 1190s # End of match-all-full2 tests 1190s # Start of match-all3 tests 1190s ok 841 /regex/match-all3/599 1190s ok 842 /regex/match-all3/601 1190s # End of match-all3 tests 1190s # Start of match-all-full3 tests 1190s ok 843 /regex/match-all-full3/600 1190s ok 844 /regex/match-all-full3/602 1190s # End of match-all-full3 tests 1190s # Start of match-notempty tests 1190s ok 845 /regex/match-notempty/603 1190s # End of match-notempty tests 1190s # Start of match-notempty-optimized tests 1190s ok 846 /regex/match-notempty-optimized/603 1190s # End of match-notempty-optimized tests 1190s # Start of match-notempty-atstart tests 1190s ok 847 /regex/match-notempty-atstart/604 1190s # End of match-notempty-atstart tests 1190s # Start of match-notempty-atstart-optimized tests 1190s ok 848 /regex/match-notempty-atstart-optimized/604 1190s # End of match-notempty-atstart-optimized tests 1190s # End of regex tests 1190s TAP version 14 1190s # random seed: R02S7a47f64be8afe949c40ef9255956296c 1190s 1..1 1190s # Start of gdbus tests 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_SM0152/gdbus/non-socket/.dirs/runtime 1190s ok 1 /gdbus/non-socket 1190s # End of gdbus tests 1190s TAP version 14 1190s # random seed: R02S8c221c7b8eeebbb8ac6f886dce86eb89 1190s 1..8 1190s # Start of monitor tests 1190s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1190s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1190s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1190s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s # Start of file tests 1190s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1190s # End of file tests 1190s # End of monitor tests 1190s TAP version 14 1190s # random seed: R02S04ba71abec94edc13eafe8df0920228f 1190s 1..2 1190s # Start of gdbus tests 1190s ok 1 /gdbus/x11-autolaunch 1190s ok 2 /gdbus/xdg-runtime 1190s # End of gdbus tests 1190s TAP version 14 1190s # random seed: R02Sa67ff77fa5d1cf5331b40a71f180d91d 1190s 1..1 1190s # Start of gobject tests 1190s # Start of flags tests 1190s ok 1 /gobject/flags/validate 1190s # End of flags tests 1190s # End of gobject tests 1190s TAP version 14 1190s # random seed: R02S94a2596d37c6e196559180e0e5c70284 1190s 1..12 1190s # Start of gdbus tests 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/.dirs/runtime 1190s # Testing with unix:dir address 1190s # Testing with unix:tmpdir address 1190s # Testing with unix:path address 1190s ok 1 /gdbus/peer-to-peer 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/delayed-message-processing/.dirs/runtime 1190s # Testing with unix:dir address 1190s ok 2 /gdbus/delayed-message-processing 1190s # slow test /gdbus/delayed-message-processing executed in 0.51 secs 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/nonce-tcp/.dirs/runtime 1190s ok 3 /gdbus/nonce-tcp 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/tcp-anonymous/.dirs/runtime 1190s ok 4 /gdbus/tcp-anonymous 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/credentials/.dirs/runtime 1190s ok 5 /gdbus/credentials 1190s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/home 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/cache 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/system-config2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/config 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/system-data2 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/data 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/state 1190s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/codegen-peer-to-peer/.dirs/runtime 1190s # Testing with unix:dir address 1190s # Machine ID: b79214a4f5d44a4bbdce892416235b7a 1191s ok 6 /gdbus/codegen-peer-to-peer 1191s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1191s # Start of peer-to-peer tests 1191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/home 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/cache 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/system-config2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/config 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/system-data2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/data 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/state 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/signals/.dirs/runtime 1191s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1191s # Testing with unix:dir address 1191s ok 7 /gdbus/peer-to-peer/signals 1191s # Start of invalid tests 1191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/home 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/cache 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/config 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/data 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/state 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1191s ok 8 /gdbus/peer-to-peer/invalid/server 1191s # Start of conn tests 1191s # Start of stream tests 1191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1191s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1191s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1191s # End of stream tests 1191s # Start of addr tests 1191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1191s ok - glib/gdbus-peer.test 1191s # Running test: glib/array-test.test 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1191s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1191s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1191s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_9GB352/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1191s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1191s # End of addr tests 1191s # End of conn tests 1191s # End of invalid tests 1191s # End of peer-to-peer tests 1191s # End of gdbus tests 1191s TAP version 14 1191s # random seed: R02Sdaab5ecc98075216b27377624a9ddbf1 1191s 1..113 1191s # Start of array tests 1191s ok 1 /array/ref-count 1191s ok 2 /array/steal 1191s ok 3 /array/clear-func 1191s ok 4 /array/binary-search 1191s # /array/copy-sized summary: Test that copying a newly-allocated sized array works. 1191s ok 5 /array/copy-sized 1191s ok 6 /array/overflow-append-vals 1191s ok 7 /array/overflow-set-size 1191s # Start of new tests 1191s ok 8 /array/new/zero-terminated 1191s ok 9 /array/new/take 1191s ok 10 /array/new/take-zero-terminated 1191s # Start of take tests 1191s ok 11 /array/new/take/empty 1191s ok 12 /array/new/take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1191s # End of take tests 1191s # End of new tests 1191s # Start of set-size tests 1191s ok 13 /array/set-size/non-zero-terminated-no-clear 1191s ok 14 /array/set-size/non-zero-terminated-clear 1191s ok 15 /array/set-size/zero-terminated-no-clear 1191s ok 16 /array/set-size/zero-terminated-clear 1191s # Start of sized tests 1191s ok 17 /array/set-size/sized/non-zero-terminated-no-clear 1191s ok 18 /array/set-size/sized/non-zero-terminated-clear 1191s ok 19 /array/set-size/sized/zero-terminated-no-clear 1191s ok 20 /array/set-size/sized/zero-terminated-clear 1191s # End of sized tests 1191s # End of set-size tests 1191s # Start of append-val tests 1191s ok 21 /array/append-val/non-zero-terminated-no-clear 1191s ok 22 /array/append-val/non-zero-terminated-clear 1191s ok 23 /array/append-val/zero-terminated-no-clear 1191s ok 24 /array/append-val/zero-terminated-clear 1191s # End of append-val tests 1191s # Start of prepend-val tests 1191s ok 25 /array/prepend-val/non-zero-terminated-no-clear 1191s ok 26 /array/prepend-val/non-zero-terminated-clear 1191s ok 27 /array/prepend-val/zero-terminated-no-clear 1191s ok 28 /array/prepend-val/zero-terminated-clear 1191s # End of prepend-val tests 1191s # Start of prepend-vals tests 1191s ok 29 /array/prepend-vals/non-zero-terminated-no-clear 1191s ok 30 /array/prepend-vals/non-zero-terminated-clear 1191s ok 31 /array/prepend-vals/zero-terminated-no-clear 1191s ok 32 /array/prepend-vals/zero-terminated-clear 1191s # End of prepend-vals tests 1191s # Start of insert-vals tests 1191s ok 33 /array/insert-vals/non-zero-terminated-no-clear 1191s ok 34 /array/insert-vals/non-zero-terminated-clear 1191s ok 35 /array/insert-vals/zero-terminated-no-clear 1191s ok 36 /array/insert-vals/zero-terminated-clear 1191s # End of insert-vals tests 1191s # Start of remove-index tests 1191s ok 37 /array/remove-index/non-zero-terminated-no-clear 1191s ok 38 /array/remove-index/non-zero-terminated-clear 1191s ok 39 /array/remove-index/zero-terminated-no-clear 1191s ok 40 /array/remove-index/zero-terminated-clear 1191s # End of remove-index tests 1191s # Start of remove-index-fast tests 1191s ok 41 /array/remove-index-fast/non-zero-terminated-no-clear 1191s ok 42 /array/remove-index-fast/non-zero-terminated-clear 1191s ok 43 /array/remove-index-fast/zero-terminated-no-clear 1191s ok 44 /array/remove-index-fast/zero-terminated-clear 1191s # End of remove-index-fast tests 1191s # Start of remove-range tests 1191s ok 45 /array/remove-range/non-zero-terminated-no-clear 1191s ok 46 /array/remove-range/non-zero-terminated-clear 1191s ok 47 /array/remove-range/zero-terminated-no-clear 1191s ok 48 /array/remove-range/zero-terminated-clear 1191s # End of remove-range tests 1191s # Start of copy tests 1191s ok 49 /array/copy/non-zero-terminated-no-clear 1191s ok 50 /array/copy/non-zero-terminated-clear 1191s ok 51 /array/copy/zero-terminated-no-clear 1191s ok 52 /array/copy/zero-terminated-clear 1191s # End of copy tests 1191s # Start of sort tests 1191s ok 53 /array/sort/non-zero-terminated-no-clear 1191s ok 54 /array/sort/non-zero-terminated-clear 1191s ok 55 /array/sort/zero-terminated-no-clear 1191s ok 56 /array/sort/zero-terminated-clear 1191s # End of sort tests 1191s # Start of sort-with-data tests 1191s ok 57 /array/sort-with-data/non-zero-terminated-no-clear 1191s ok 58 /array/sort-with-data/non-zero-terminated-clear 1191s ok 59 /array/sort-with-data/zero-terminated-no-clear 1191s ok 60 /array/sort-with-data/zero-terminated-clear 1191s # End of sort-with-data tests 1191s # End of array tests 1191s # Start of pointerarray tests 1191s ok 61 /pointerarray/add 1191s ok 62 /pointerarray/insert 1191s ok 63 /pointerarray/new-take 1191s ok 64 /pointerarray/new-take-null-terminated 1191s ok 65 /pointerarray/new-from-array 1191s ok 66 /pointerarray/new-from-null-terminated-array 1191s ok 67 /pointerarray/free-func 1191s ok 68 /pointerarray/array_extend_and_steal 1191s ok 69 /pointerarray/sort 1191s ok 70 /pointerarray/sort-with-data 1191s ok 71 /pointerarray/sort-values 1191s ok 72 /pointerarray/sort-values-with-data 1191s ok 73 /pointerarray/remove-range 1191s ok 74 /pointerarray/steal 1191s # Start of free tests 1191s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1191s ok 75 /pointerarray/free/null-terminated 1191s # End of free tests 1191s # Start of new-take tests 1191s ok 76 /pointerarray/new-take/empty 1191s ok 77 /pointerarray/new-take/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1191s ok 78 /pointerarray/new-take/with-free-func 1191s # End of new-take tests 1191s # Start of new-take-null-terminated tests 1191s ok 79 /pointerarray/new-take-null-terminated/empty 1191s ok 80 /pointerarray/new-take-null-terminated/with-free-func 1191s ok 81 /pointerarray/new-take-null-terminated/from-gstrv 1191s # End of new-take-null-terminated tests 1191s # Start of new-from-array tests 1191s ok 82 /pointerarray/new-from-array/empty 1191s ok 83 /pointerarray/new-from-array/overflow # SKIP Overflow test requires UINT_WIDTH > SIZE_WIDTH. 1191s ok 84 /pointerarray/new-from-array/with-copy-and-free-func 1191s # End of new-from-array tests 1191s # Start of new-from-null-terminated-array tests 1191s ok 85 /pointerarray/new-from-null-terminated-array/empty 1191s ok 86 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1191s ok 87 /pointerarray/new-from-null-terminated-array/from-gstrv 1191s # End of new-from-null-terminated-array tests 1191s # Start of ref-count tests 1191s ok 88 /pointerarray/ref-count/not-null-terminated 1191s ok 89 /pointerarray/ref-count/null-terminated 1191s # End of ref-count tests 1191s # Start of array_copy tests 1191s # /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 1191s ok 90 /pointerarray/array_copy/not-null-terminated 1191s # /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 1191s ok 91 /pointerarray/array_copy/null-terminated 1191s # End of array_copy tests 1191s # Start of array_extend tests 1191s ok 92 /pointerarray/array_extend/not-null-terminated 1191s ok 93 /pointerarray/array_extend/null-terminated 1191s # End of array_extend tests 1191s # Start of sort tests 1191s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1191s ok 94 /pointerarray/sort/example 1191s # End of sort tests 1191s # Start of sort-with-data tests 1191s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1191s ok 95 /pointerarray/sort-with-data/example 1191s # End of sort-with-data tests 1191s # Start of sort-values tests 1191s ok 96 /pointerarray/sort-values/example 1191s # End of sort-values tests 1191s # Start of sort-values-with-data tests 1191s ok 97 /pointerarray/sort-values-with-data/example 1191s # End of sort-values-with-data tests 1191s # Start of find tests 1192s ok 98 /pointerarray/find/empty 1192s ok 99 /pointerarray/find/non-empty 1192s # End of find tests 1192s # Start of steal_index tests 1192s ok 100 /pointerarray/steal_index/not-null-terminated 1192s ok 101 /pointerarray/steal_index/null-terminated 1192s # End of steal_index tests 1192s # End of pointerarray tests 1192s # Start of bytearray tests 1192s ok 102 /bytearray/steal 1192s ok 103 /bytearray/append 1192s ok 104 /bytearray/prepend 1192s ok 105 /bytearray/remove 1192s ok 106 /bytearray/remove-fast 1192s ok 107 /bytearray/remove-range 1192s ok 108 /bytearray/ref-count 1192s ok 109 /bytearray/sort 1192s ok 110 /bytearray/sort-with-data 1192s ok 111 /bytearray/new-take 1192s ok 112 /bytearray/new-take-overflow # SKIP Overflow test requires G_MAXSIZE > G_MAXUINT. 1192s ok 113 /bytearray/free-to-bytes 1192s # End of bytearray tests 1192s ok - glib/array-test.test 1192s # Running test: glib/gdbus-sasl.test 1192s TAP version 14 1192s # random seed: R02Sac4b43dac9be00f64998d7621d2d974d 1192s 1..1 1192s # Start of gdbus tests 1192s # Start of sasl tests 1192s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/home 1192s ok - glib/gdbus-sasl.test 1192s # Running test: glib/unix-fd.test 1192s ok - glib/unix-fd.test 1192s # Running test: glib/notify-init2.test 1192s ok - glib/notify-init2.test 1192s # Running test: glib/socket-listener.test 1192s ok - glib/socket-listener.test 1192s # Running test: glib/gthash.test 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/cache 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/system-config2 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/config 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/system-data2 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/data 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/state 1192s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_6VYX52/gdbus/sasl/server/.dirs/runtime 1192s # New handshake: EXTERNAL with incorrect initial response 1192s # C:“AUTH EXTERNAL 30†1192s # Expect: /^REJECTED.*$/ 1192s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1192s # New handshake: EXTERNAL without initial response, failing to authenticate 1192s # C:“AUTH EXTERNAL†1192s # Expect: /^DATA$/ 1192s # S:“DATA†1192s # C:“DATA 30†1192s # Expect: /^REJECTED.*$/ 1192s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1†1192s # New handshake: EXTERNAL with initial response 1192s # C:“AUTH EXTERNAL 31303030†1192s # Expect: /^OK [0-9a-f]+$/ 1192s # S:“OK c649f2c2f5d65830af0bebf7681a5b66†1192s # New handshake: EXTERNAL without initial response 1192s # C:“AUTH EXTERNAL†1192s # Expect: /^DATA$/ 1192s # S:“DATA†1192s # C:“DATA 31303030†1192s # Expect: /^OK [0-9a-f]+$/ 1192s # S:“OK c649f2c2f5d65830af0bebf7681a5b66†1192s # New handshake: EXTERNAL with empty authorization identity 1192s # C:“AUTH EXTERNAL†1192s # Expect: /^DATA$/ 1192s # S:“DATA†1192s # C:“DATA†1192s # Expect: /^OK [0-9a-f]+$/ 1192s # S:“OK c649f2c2f5d65830af0bebf7681a5b66†1192s # New handshake: EXTERNAL with empty authorization identity and whitespace 1192s # C:“AUTH EXTERNAL†1192s # Expect: /^DATA$/ 1192s # S:“DATA†1192s # C:“DATA †1192s # Expect: /^OK [0-9a-f]+$/ 1192s # S:“OK c649f2c2f5d65830af0bebf7681a5b66†1192s ok 1 /gdbus/sasl/server 1192s # End of sasl tests 1192s # End of gdbus tests 1192s TAP version 14 1192s # random seed: R02S9f7724f7e668bb6f6196b94230116f28 1192s 1..2 1192s # Start of unix-fd tests 1192s ok 1 /unix-fd/fd-list 1192s ok 2 /unix-fd/scm 1192s # End of unix-fd tests 1192s TAP version 14 1192s # random seed: R02Sb240ee3153b643a9269780cd947843cb 1192s 1..1 1192s # Start of properties tests 1192s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1192s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1192s ok 1 /properties/notify-in-init2 1192s # End of properties tests 1192s TAP version 14 1192s # random seed: R02S3123262ceb50b7f3565b8e73d54a8859 1192s 1..1 1192s # Start of socket-listener tests 1192s ok 1 /socket-listener/event-signal 1192s # End of socket-listener tests 1192s TAP version 14 1192s # random seed: R02Sa2aff3d2811fd99feaf6e93589f4968d 1192s 1..1 1192s # Start of gthash tests 1192s ok 1 /gthash/build-retrieve 1192s # End of gthash tests 1192s TAP version 14 1192s # random seed: R02S30e47e85d640774446e0d0ea978bb3be 1192s 1..4 1192s # Start of gthread tests 1192s ok - glib/gthash.test 1192s # Running test: glib/spawn-multithreaded.test 1193s # Child 14311 (ttl 1) exited, status 0 1195s # Executing: glib/spawn-multithreaded.test 1195s # Child 14312 (ttl 2) exited, status 0 1195s ok 1 /gthread/spawn-childs 1195s # slow test /gthread/spawn-childs executed in 2.00 secs 1195s # Created pid: 14316 (ttl 1) 1195s # Created pid: 14317 (ttl 2) 1195s # Child 14316 (ttl 1) exited, status 0 1196s # Child 14317 (ttl 2) exited, status 0 1196s ok 2 /gthread/spawn-childs-threads 1196s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 1196s ok 3 /gthread/spawn-sync 1196s ok 4 /gthread/spawn-async 1196s # End of gthread tests 1196s ok - glib/spawn-multithreaded.test 1196s # Running test: glib/dbus-appinfo.test 1196s TAP version 14 1196s # random seed: R02Sc28e69969ef7d91ccec618e3acf5dcef 1196s 1..7 1196s # Start of appinfo tests 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/runtime 1196s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1196s ok 1 /appinfo/dbusappinfo 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/runtime 1196s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1196s # Acquired a message bus connection 1196s # Acquired the name org.freedesktop.portal.Documents 1196s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_9HC552/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/config 1196s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1196s # fake-document-portal cancelled 1196s ok 2 /appinfo/flatpak-doc-export 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/runtime 1196s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1196s # Acquired a message bus connection 1196s # Acquired the name org.freedesktop.portal.Documents 1196s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/config 1196s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1196s # fake-document-portal cancelled 1196s ok 3 /appinfo/flatpak-missing-doc-export 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/runtime 1196s # Acquired a message bus connection 1196s # Acquired the name org.freedesktop.portal.Desktop 1196s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_9HC552/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/config 1196s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1196s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1196s # Response emitted 1196s # fake-desktop-portal cancelled 1196s ok 4 /appinfo/portal-open-file 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/data 1196s ok - glib/dbus-appinfo.test 1196s # Running test: glib/pathbuf.test 1196s ok - glib/pathbuf.test 1196s # Running test: glib/memory-output-stream.test 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/runtime 1196s # Acquired a message bus connection 1196s # Acquired the name org.freedesktop.portal.Desktop 1196s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/config 1196s # Got open file request for http://example.com 1196s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1196s # Response emitted 1196s # fake-desktop-portal cancelled 1196s ok 5 /appinfo/portal-open-uri 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/runtime 1196s # Acquired a message bus connection 1196s # Acquired the name org.freedesktop.portal.Desktop 1196s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/config 1196s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1196s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio1577207739 1196s # Response emitted 1196s # fake-desktop-portal cancelled 1196s ok 6 /appinfo/portal-open-file-async 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/runtime 1196s # Acquired a message bus connection 1196s # Acquired the name org.freedesktop.portal.Desktop 1196s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_9HC552/appinfo/portal-open-uri-async/.dirs/config 1196s # Got open file request for http://example.com 1196s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio1426878761 1196s # Response emitted 1196s # fake-desktop-portal cancelled 1196s ok 7 /appinfo/portal-open-uri-async 1196s # End of appinfo tests 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1196s TAP version 14 1196s # random seed: R02S3ef6adf38bef683ee0716dd95be27baa 1196s 1..3 1196s # Start of pathbuf tests 1196s ok - glib/memory-output-stream.test 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/system-config1:/tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/system-data1:/tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_C7C752/pathbuf/init/.dirs/runtime 1196s # Initializing empty path buf 1196s # Initializing with empty path 1196s # Initializing with full path 1196s # Initializing with no path 1196s # Allocating GPathBuf on the heap 1196s ok 1 /pathbuf/init 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/system-config1:/tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/system-data1:/tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_C7C752/pathbuf/push-pop/.dirs/runtime 1196s # Pushing relative path component 1196s # Pushing absolute path component 1196s # Popping a path component 1196s # Can't pop the last element of a path buffer 1196s ok 2 /pathbuf/push-pop 1196s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/home 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/cache 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/system-config1:/tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/system-config2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/config 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/system-data1:/tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/system-data2 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/data 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/state 1196s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_pathbuf_C7C752/pathbuf/filename-extension/.dirs/runtime 1196s ok 3 /pathbuf/filename-extension 1196s # End of pathbuf tests 1196s TAP version 14 1196s # random seed: R02Saa57ec17802d59c761f2420f5b8b48ea 1196s 1..10 1196s # Start of memory-output-stream tests 1196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1196s ok 1 /memory-output-stream/truncate 1196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1196s ok 2 /memory-output-stream/get-data-size 1196s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1196s ok 3 /memory-output-stream/properties 1196s ok 4 /memory-output-stream/write-bytes 1196s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1196s ok 5 /memory-output-stream/write-null 1196s ok 6 /memory-output-stream/writev 1196s ok 7 /memory-output-stream/writev_nonblocking 1196s ok 8 /memory-output-stream/steal_as_bytes 1196s # Start of seek tests 1196s ok 9 /memory-output-stream/seek/fixed 1196s ok 10 /memory-output-stream/seek/resizable 1196s # End of seek tests 1196s # End of memory-output-stream tests 1196s # Running test: glib/1bit-mutex.test 1196s TAP version 14 1196s # random seed: R02S71faaa72c8312676c48cfee61219a3e5 1196s 1..2 1196s # Start of glib tests 1196s # Start of 1bit-mutex tests 1197s ok 1 /glib/1bit-mutex/int 1197s # slow test /glib/1bit-mutex/int executed in 1.23 secs 1199s # Executing: glib/1bit-mutex.test 1199s ok 2 /glib/1bit-mutex/pointer 1199s # slow test /glib/1bit-mutex/pointer executed in 1.38 secs 1199s # End of 1bit-mutex tests 1199s # End of glib tests 1199s ok - glib/1bit-mutex.test 1199s # Running test: glib/thread-pool-slow.test 1199s TAP version 14 1199s # random seed: R02S928393d5b8bac4ced6058051a1730250 1199s 1..7 1199s # Start of threadpool tests 1199s ok 1 /threadpool/functions 1199s ok 2 /threadpool/stop-unused 1199s # slow test /threadpool/stop-unused executed in 0.51 secs 1199s ok 3 /threadpool/pools 1199s # [unsorted] ===> pushed new thread with id:43, number of threads:1, unprocessed:1 1199s # [unsorted] ===> pushed new thread with id:36, number of threads:2, unprocessed:2 1199s # [unsorted] ===> pushed new thread with id:11, number of threads:3, unprocessed:3 1199s # [unsorted] ===> pushed new thread with id:20, number of threads:4, unprocessed:4 1199s # [unsorted] ===> pushed new thread with id:48, number of threads:5, unprocessed:5 1199s # [unsorted] ===> pushed new thread with id:46, number of threads:6, unprocessed:6 1199s # [unsorted] ===> pushed new thread with id:65, number of threads:7, unprocessed:4 1199s # [unsorted] ===> pushed new thread with id:96, number of threads:8, unprocessed:5 1199s # [unsorted] ===> pushed new thread with id:16, number of threads:9, unprocessed:1 1199s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:1 1199s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:2 1199s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:2 1199s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:3 1199s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:4 1199s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:5 1199s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:6 1199s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:7 1199s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:8 1199s # [unsorted] ===> pushed new thread with id:67, number of threads:10, unprocessed:9 1199s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:10 1199s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:11 1199s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:12 1199s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:13 1199s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:14 1199s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:15 1199s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:16 1199s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:17 1199s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:18 1199s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:19 1199s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:20 1199s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:21 1199s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:22 1199s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:23 1199s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:24 1199s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:25 1199s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:26 1199s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:27 1199s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:28 1199s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:29 1199s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:30 1199s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:31 1199s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:32 1199s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:33 1199s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:34 1199s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:35 1199s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:36 1199s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:37 1199s # [unsorted] ===> pushed new thread with id:21, number of threads:10, unprocessed:38 1199s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:39 1199s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:40 1199s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:41 1199s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:42 1199s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:43 1199s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:44 1199s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:45 1199s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:46 1199s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:47 1199s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:48 1199s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:49 1199s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:50 1199s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:51 1199s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:52 1199s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:53 1199s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:54 1199s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:55 1199s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:56 1199s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:57 1199s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:58 1199s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:59 1199s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:60 1199s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:61 1199s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:62 1199s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:63 1199s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:64 1199s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:65 1199s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:66 1199s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:67 1199s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:68 1199s # [unsorted] ===> pushed new thread with id:24, number of threads:10, unprocessed:69 1199s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:70 1199s # [unsorted] ===> pushed new thread with id:22, number of threads:10, unprocessed:71 1199s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:72 1199s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:73 1199s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:74 1199s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:75 1199s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:76 1199s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:77 1199s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:78 1199s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:79 1199s # [unsorted] ===> pushed new thread with id:69, number of threads:10, unprocessed:80 1199s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:81 1199s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:82 1199s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:83 1199s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:84 1199s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:85 1199s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:86 1199s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:87 1199s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:88 1199s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:89 1199s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:90 1199s ok 4 /threadpool/no-sort 1199s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:1 1199s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:2 1199s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:3 1199s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:4 1199s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:5 1199s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:6 1199s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:7 1199s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:8 1199s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:9 1199s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:10 1199s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:11 1199s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:12 1199s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:13 1199s # [ sorted] ===> pushed new thread with id:41, number of threads:0, unprocessed:14 1199s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:15 1199s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:16 1199s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:17 1199s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:18 1199s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:19 1199s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:20 1199s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:21 1199s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:22 1199s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:23 1199s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:24 1199s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:25 1199s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:26 1199s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:27 1199s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:28 1199s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:29 1199s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:30 1199s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:31 1199s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:32 1199s # [ sorted] ===> pushed new thread with id:84, number of threads:0, unprocessed:33 1199s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:34 1199s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:35 1199s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:36 1199s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:37 1199s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:38 1199s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:39 1199s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:40 1199s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:41 1199s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:42 1199s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:43 1199s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:44 1199s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:45 1199s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:46 1199s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:47 1199s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:48 1199s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:49 1199s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:50 1199s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:51 1199s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:52 1199s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:53 1199s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:54 1199s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:55 1199s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:56 1199s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:57 1199s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:58 1199s # [ sorted] ===> pushed new thread with id:57, number of threads:0, unprocessed:59 1199s # [ sorted] ===> pushed new thread with id:82, number of threads:0, unprocessed:60 1199s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:61 1199s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:62 1199s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:63 1199s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:64 1199s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:65 1199s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:66 1199s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:67 1199s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:68 1199s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:69 1199s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:70 1199s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:71 1199s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:72 1199s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:73 1199s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:74 1199s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:75 1199s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:76 1199s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:77 1199s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:78 1199s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:79 1199s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:80 1199s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:81 1199s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:82 1199s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:83 1199s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:84 1199s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:85 1199s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:86 1199s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:87 1199s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:88 1199s # [ sorted] ===> pushed new thread with id:27, number of threads:0, unprocessed:89 1199s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:90 1199s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:91 1199s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:92 1199s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:93 1199s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:94 1199s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:95 1199s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:96 1199s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:97 1199s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:98 1199s # [ sorted] ===> pushed new thread with id:23, number of threads:0, unprocessed:99 1199s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:100 1199s # Starting thread pool processing 1199s ok 5 /threadpool/sort 1199s ok 6 /threadpool/stop-unused-multiple 1199s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1199s # Pool idle thread count: 0, unprocessed jobs: 41 1200s # Pool idle thread count: 0, unprocessed jobs: 0 1200s # Pool idle thread count: 0, unprocessed jobs: 0 1200s # Pool idle thread count: 10, unprocessed jobs: 0 1200s # Pool idle thread count: 10, unprocessed jobs: 0 1201s # Pool idle thread count: 10, unprocessed jobs: 0 1201s # Pool idle thread count: 10, unprocessed jobs: 0 1201s # Pool idle thread count: 10, unprocessed jobs: 0 1201s # Pool idle thread count: 10, unprocessed jobs: 0 1202s # Pool idle thread count: 10, unprocessed jobs: 0 1202s # Pool idle thread count: 10, unprocessed jobs: 0 1202s # Pool idle thread count: 10, unprocessed jobs: 0 1202s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Executing: glib/thread-pool-slow.test 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1206s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1207s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Pool idle thread count: 10, unprocessed jobs: 0 1208s # Executing: glib/thread-pool-slow.test 1208s # Pool idle thread count: 10, unprocessed jobs: 2 1208s # Pool idle thread count: 10, unprocessed jobs: 2 1208s # Pool idle thread count: 8, unprocessed jobs: 0 1208s # Pool idle thread count: 8, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1209s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 10, unprocessed jobs: 0 1210s # Pool idle thread count: 2, unprocessed jobs: 0 1210s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Executing: glib/thread-pool-slow.test 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1213s # Pool idle thread count: 2, unprocessed jobs: 0 1214s # Pool idle thread count: 2, unprocessed jobs: 0 1214s # Pool idle thread count: 2, unprocessed jobs: 0 1214s # Pool idle thread count: 2, unprocessed jobs: 0 1214s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1215s # Pool idle thread count: 2, unprocessed jobs: 0 1216s # Pool idle thread count: 2, unprocessed jobs: 0 1216s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Executing: glib/thread-pool-slow.test 1221s ok - glib/thread-pool-slow.test 1221s # Running test: glib/gdbus-proxy-threads.test 1221s ok - glib/gdbus-proxy-threads.test 1221s # Running test: glib/rcbox.test 1221s ok - glib/rcbox.test 1221s # Running test: glib/stream-rw_all.test 1221s ok - glib/stream-rw_all.test 1221s # SUMMARY: total=323; passed=322; skipped=1; failed=0; user=320.7s; system=100.1s; maxrss=142592 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s # Pool idle thread count: 2, unprocessed jobs: 0 1221s ok 7 /threadpool/idle-time 1221s # slow test /threadpool/idle-time executed in 19.53 secs 1221s # End of threadpool tests 1221s TAP version 14 1221s # random seed: R02S765f7095bbfd26bd8a60e360b046dd82 1221s 1..1 1221s # Start of gdbus tests 1221s # Start of proxy tests 1221s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/home 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/cache 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/system-config2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/config 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/system-data2 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/data 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/state 1221s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_O7I852/gdbus/proxy/vs-threads/.dirs/runtime 1221s ok 1 /gdbus/proxy/vs-threads 1221s # slow test /gdbus/proxy/vs-threads executed in 1.56 secs 1221s # End of proxy tests 1221s # End of gdbus tests 1221s cleaning up pid 14765 1221s TAP version 14 1221s # random seed: R02Se23a063976c00aecf120064409605da1 1221s 1..8 1221s # Start of rcbox tests 1221s ok 1 /rcbox/new 1221s # global_point = 0x4d34000 1221s ok 2 /rcbox/release-full 1221s # global_point_a = 0x4d34000 1221s # global_point_b = 0x4d2c188 1221s ok 3 /rcbox/dup 1221s ok 4 /rcbox/alignment 1221s # End of rcbox tests 1221s # Start of atomic-rcbox tests 1221s ok 5 /atomic-rcbox/new 1221s # global_point = 0x4d2c188 1221s ok 6 /atomic-rcbox/release-full 1221s # global_point_a = 0x4d2c188 1221s # global_point_b = 0x4d34000 1221s ok 7 /atomic-rcbox/dup 1221s ok 8 /atomic-rcbox/alignment 1221s # End of atomic-rcbox tests 1221s TAP version 14 1221s # random seed: R02S10920926febd35b744e17073d836e306 1221s 1..3 1221s # Start of stream tests 1221s # Start of read_all_async tests 1221s ok 1 /stream/read_all_async/memory 1221s # End of read_all_async tests 1221s # Start of write_all_async tests 1221s ok 2 /stream/write_all_async/memory 1221s # End of write_all_async tests 1221s # Start of read_write_all_async tests 1221s ok 3 /stream/read_write_all_async/pipe 1221s # End of read_write_all_async tests 1221s # End of stream tests 1221s autopkgtest [18:57:08]: test installed-tests: -----------------------] 1225s installed-tests PASS 1225s autopkgtest [18:57:12]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1230s autopkgtest [18:57:17]: test closure-refcount: preparing testbed 1234s Reading package lists... 1234s Building dependency tree... 1234s Reading state information... 1234s Starting pkgProblemResolver with broken count: 0 1234s Starting 2 pkgProblemResolver with broken count: 0 1234s Done 1234s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1241s autopkgtest [18:57:28]: test closure-refcount: [----------------------- 1248s Running test: glib/closure-refcount.test 1248s autopkgtest [18:57:30]: test closure-refcount: -----------------------] 1248s TAP version 14 1248s # random seed: R02Sa2c45e990c7440928dbaf262a5df5d40 1248s 1..1 1248s # Start of closure tests 1248s ok 1 /closure/refcount # SKIP Known to be flaky on arm* (#880883, #917983) 1248s # End of closure tests 1248s PASS: glib/closure-refcount.test 1248s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2432 1255s autopkgtest [18:57:39]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1255s closure-refcount PASS 1259s autopkgtest [18:57:46]: test debugcontroller: preparing testbed 1267s Reading package lists... 1267s Building dependency tree... 1267s Reading state information... 1267s Starting pkgProblemResolver with broken count: 0 1267s Starting 2 pkgProblemResolver with broken count: 0 1267s Done 1267s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1276s autopkgtest [18:57:57]: test debugcontroller: [----------------------- 1276s Running test: glib/debugcontroller.test 1276s autopkgtest [18:57:59]: test debugcontroller: -----------------------] 1276s TAP version 14 1276s # random seed: R02S00cb10456a1be6aba0cf9bf97d8629df 1276s 1..3 1276s # Start of debug-controller tests 1276s # Start of dbus tests 1276s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1276s # GLib-GIO-DEBUG: Debug output enabled 1276s # GLib-GIO-DEBUG: Debug output disabled 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 1 /debug-controller/dbus/basic 1276s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 2 /debug-controller/dbus/duplicate 1276s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1276s # GLib-GIO-DEBUG: Debug output enabled 1276s # GLib-GIO-DEBUG: Debug output disabled 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1276s ok 3 /debug-controller/dbus/properties 1276s # End of dbus tests 1276s # End of debug-controller tests 1276s PASS: glib/debugcontroller.test 1276s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4480 1279s debugcontroller PASS 1279s autopkgtest [18:58:06]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1283s autopkgtest [18:58:10]: test gdbus-server-auth: preparing testbed 1285s Reading package lists... 1285s Building dependency tree... 1285s Reading state information... 1285s Starting pkgProblemResolver with broken count: 0 1285s Starting 2 pkgProblemResolver with broken count: 0 1285s Done 1286s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1296s autopkgtest [18:58:23]: test gdbus-server-auth: [----------------------- 1298s Running test: glib/gdbus-server-auth.test 1298s TAP version 14 1298s # random seed: R02S2fb842379a5384b22508d42a7500d161 1298s 1..9 1298s # Start of gdbus tests 1298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/home 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/cache 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/system-config2 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/config 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/system-data2 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/data 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/state 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/.dirs/runtime 1298s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-4R1T52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-4R1T52/dbus-GJP0wMgB 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15361 1298s ok 1 /gdbus/server-auth 1298s # Start of server-auth tests 1298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/home 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/cache 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/system-config2 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/config 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/system-data2 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/data 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/state 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/abstract/.dirs/runtime 1298s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-DU5U52 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1298s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-DU5U52/dbus-E3jCSXoL 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15361 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1298s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15361 1298s ok 2 /gdbus/server-auth/abstract 1298s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/home 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/cache 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/system-config2 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/config 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/system-data2 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/data 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/state 1298s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/tcp/.dirs/runtime 1298s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1298s # Connectable address: tcp:host=127.0.0.1,port=35739 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1298s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1298s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1298s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1298s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1298s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1298s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1299s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1299s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1299s ok 3 /gdbus/server-auth/tcp 1299s # slow test /gdbus/server-auth/tcp executed in 0.86 secs 1299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/home 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/cache 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/system-config2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/config 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/system-data2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/data 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/state 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/.dirs/runtime 1299s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-JXG952 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1299s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-JXG952/dbus-Mf4opn0w 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15361 1299s ok 4 /gdbus/server-auth/anonymous 1299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/home 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/cache 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/system-config2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/config 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/system-data2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/data 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/state 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/.dirs/runtime 1299s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-JVS852 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1299s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-JVS852/dbus-6UWNCCyq 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1299s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15361 1299s ok 5 /gdbus/server-auth/external 1299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/home 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/cache 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/system-config2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/config 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/system-data2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/data 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/state 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/.dirs/runtime 1299s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-TEX952 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1299s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-TEX952/dbus-EuU3LKfL 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15361 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1299s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15361 1299s ok 6 /gdbus/server-auth/sha1 1299s # Start of anonymous tests 1299s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/home 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/cache 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/config 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/data 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/state 1299s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1299s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1299s # Connectable address: tcp:host=127.0.0.1,port=41685 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1299s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1299s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1299s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1299s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1299s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1300s ok 7 /gdbus/server-auth/anonymous/tcp 1300s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.84 secs 1300s # End of anonymous tests 1300s # Start of external tests 1300s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/home 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/cache 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/config 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/data 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/state 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/external/require-same-user/.dirs/runtime 1300s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-MZDC62 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1300s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_BY1T52/gdbus-server-auth-MZDC62/dbus-HqJTQTSr 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 15361 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1300s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=15361,uid=1000,gid=1000 1300s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 15361 1300s ok 8 /gdbus/server-auth/external/require-same-user 1300s # End of external tests 1300s # Start of sha1 tests 1300s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/home 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/cache 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/config 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/data 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/state 1300s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_BY1T52/gdbus/server-auth/sha1/tcp/.dirs/runtime 1300s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1300s # Connectable address: tcp:host=127.0.0.1,port=36317 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1300s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1300s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1300s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1300s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1300s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1301s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1301s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1301s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1301s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1301s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1301s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1301s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1301s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1301s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1301s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1301s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1301s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1301s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1301s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1301s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1301s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1301s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1301s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1301s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1301s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1301s ok 9 /gdbus/server-auth/sha1/tcp 1301s # slow test /gdbus/server-auth/sha1/tcp executed in 0.86 secs 1301s # End of sha1 tests 1301s # End of server-auth tests 1301s # End of gdbus tests 1301s PASS: glib/gdbus-server-auth.test 1301s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=5888 1301s autopkgtest [18:58:28]: test gdbus-server-auth: -----------------------] 1305s autopkgtest [18:58:32]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1305s gdbus-server-auth PASS 1308s autopkgtest [18:58:35]: test gdbus-threading: preparing testbed 1310s Reading package lists... 1310s Building dependency tree... 1310s Reading state information... 1311s Starting pkgProblemResolver with broken count: 0 1311s Starting 2 pkgProblemResolver with broken count: 0 1311s Done 1311s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1319s autopkgtest [18:58:46]: test gdbus-threading: [----------------------- 1320s Running test: glib/gdbus-threading.test 1320s TAP version 14 1320s # random seed: R02S41a7ae1a6cfb5145f42749c0a923df4c 1320s 1..3 1320s # Start of gdbus tests 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_AKIS52/gdbus/delivery-in-thread/.dirs/runtime 1320s ok 1 /gdbus/delivery-in-thread 1320s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/home 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/cache 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/system-config2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/config 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/system-data2 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/data 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/state 1320s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_AKIS52/gdbus/method-calls-in-thread/.dirs/runtime 1321s ok 2 /gdbus/method-calls-in-thread 1321s # slow test /gdbus/method-calls-in-thread executed in 0.85 secs 1321s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/home 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/cache 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/system-config2 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/config 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/system-data2 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/data 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/state 1321s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_AKIS52/gdbus/threaded-singleton/.dirs/runtime 1321s # GLib-GIO-DEBUG: refcount of 0xe5e00480 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1323s ok 3 /gdbus/threaded-singleton 1323s # slow test /gdbus/threaded-singleton executed in 1.47 secs 1323s # End of gdbus tests 1323s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1323s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1323s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1323s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1323s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1323s PASS: glib/gdbus-threading.test 1323s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.6s; system=0.5s; maxrss=4224 1323s autopkgtest [18:58:50]: test gdbus-threading: -----------------------] 1327s gdbus-threading PASS 1327s autopkgtest [18:58:54]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1330s autopkgtest [18:58:57]: test gmenumodel: preparing testbed 1332s Reading package lists... 1332s Building dependency tree... 1332s Reading state information... 1332s Starting pkgProblemResolver with broken count: 0 1332s Starting 2 pkgProblemResolver with broken count: 0 1332s Done 1333s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1340s autopkgtest [18:59:07]: test gmenumodel: [----------------------- 1342s Running test: glib/gmenumodel.test 1342s TAP version 14 1342s # random seed: R02Sd200e614842403a846c64161eeaff596 1342s 1..15 1342s # Start of gmenu tests 1343s ok 1 /gmenu/equality 1343s # slow test /gmenu/equality executed in 0.82 secs 1344s ok 2 /gmenu/random 1344s # slow test /gmenu/random executed in 1.02 secs 1344s ok 3 /gmenu/attributes 1344s ok 4 /gmenu/links 1344s ok 5 /gmenu/mutable 1344s ok 6 /gmenu/convenience 1344s ok 7 /gmenu/menuitem 1344s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1344s ok 8 /gmenu/input-validation 1344s # Start of dbus tests 1345s ok 9 /gmenu/dbus/roundtrip 1345s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1345s ok 10 /gmenu/dbus/subscriptions 1347s ok 11 /gmenu/dbus/threaded 1347s # slow test /gmenu/dbus/threaded executed in 1.28 secs 1347s # Start of peer tests 1347s Executing: glib/gmenumodel.test 1348s ok 12 /gmenu/dbus/peer/roundtrip 1348s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1348s ok 13 /gmenu/dbus/peer/subscriptions 1348s # End of peer tests 1348s # Start of export tests 1348s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1348s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1348s ok 14 /gmenu/dbus/export/error-handling 1348s # End of export tests 1348s # End of dbus tests 1348s # Start of attributes tests 1348s ok 15 /gmenu/attributes/iterate 1348s # End of attributes tests 1348s # End of gmenu tests 1348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1348s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1348s PASS: glib/gmenumodel.test 1348s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=5.5s; system=1.1s; maxrss=13824 1348s autopkgtest [18:59:15]: test gmenumodel: -----------------------] 1352s gmenumodel PASS 1352s autopkgtest [18:59:19]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1355s autopkgtest [18:59:22]: test mainloop: preparing testbed 1357s Reading package lists... 1357s Building dependency tree... 1357s Reading state information... 1358s Starting pkgProblemResolver with broken count: 0 1358s Starting 2 pkgProblemResolver with broken count: 0 1358s Done 1360s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1367s autopkgtest [18:59:34]: test mainloop: [----------------------- 1369s Running test: glib/mainloop.test 1369s TAP version 14 1369s # random seed: R02S899cd03f7fa25705926f6d720c7ca9bf 1369s 1..45 1369s # Start of maincontext tests 1369s ok 1 /maincontext/basic 1369s # Add same-priority sources: 28 1369s # Find each source: 3 1369s # Remove in random order: 34 1369s ok 2 /maincontext/nsources_same_priority 1369s # Add different-priority sources: 32 1369s # Find each source: 3 1369s # Remove in random order: 37 1369s ok 3 /maincontext/nsources_different_priority 1369s # Add sources from threads: 89 1369s # Remove sources from threads: 104 1369s ok 4 /maincontext/nsources_threadpool 1369s ok 5 /maincontext/source_finalization 1369s # /maincontext/idle-once summary: Test g_idle_add_once() works 1369s ok 6 /maincontext/idle-once 1369s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1369s ok 7 /maincontext/timeout-once 1369s # Start of source_finalization_from_source tests 1369s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 8 /maincontext/source_finalization_from_source/0 1369s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 9 /maincontext/source_finalization_from_source/1 1369s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 10 /maincontext/source_finalization_from_source/2 1369s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 11 /maincontext/source_finalization_from_source/3 1369s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 12 /maincontext/source_finalization_from_source/4 1369s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 13 /maincontext/source_finalization_from_source/5 1369s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 14 /maincontext/source_finalization_from_source/6 1369s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 15 /maincontext/source_finalization_from_source/7 1369s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 16 /maincontext/source_finalization_from_source/8 1369s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1369s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1369s ok 17 /maincontext/source_finalization_from_source/9 1369s # End of source_finalization_from_source tests 1369s # Start of source_finalization_from_dispatch tests 1369s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1369s ok 18 /maincontext/source_finalization_from_dispatch/0 1369s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1369s ok 19 /maincontext/source_finalization_from_dispatch/1 1369s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1369s ok 20 /maincontext/source_finalization_from_dispatch/2 1369s # End of source_finalization_from_dispatch tests 1369s # End of maincontext tests 1369s # Start of mainloop tests 1369s ok 21 /mainloop/basic 1369s ok 22 /mainloop/timeouts # SKIP Not running timing heavy test 1369s ok 23 /mainloop/priorities 1370s ok 24 /mainloop/invoke 1370s # slow test /mainloop/invoke executed in 0.50 secs 1371s ok 25 /mainloop/child_sources 1371s # slow test /mainloop/child_sources executed in 1.20 secs 1373s ok 26 /mainloop/recursive_child_sources 1373s # slow test /mainloop/recursive_child_sources executed in 2.20 secs 1373s ok 27 /mainloop/recursive_loop_child_sources 1373s ok 28 /mainloop/swapping_child_sources 1373s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1373s ok 29 /mainloop/blocked_child_sources 1374s Executing: glib/mainloop.test 1374s ok 30 /mainloop/source_time 1374s # slow test /mainloop/source_time executed in 1.00 secs 1374s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1374s ok 31 /mainloop/overflow 1375s ok 32 /mainloop/ready-time 1375s # slow test /mainloop/ready-time executed in 0.50 secs 1375s ok 33 /mainloop/wakeup 1375s ok 34 /mainloop/remove-invalid 1375s ok 35 /mainloop/unref-while-pending 1376s ok 36 /mainloop/unix-fd 1376s # slow test /mainloop/unix-fd executed in 0.90 secs 1376s ok 37 /mainloop/unix-fd-source 1376s ok 38 /mainloop/source-unix-fd-api 1376s ok 39 /mainloop/wait 1376s ok 40 /mainloop/unix-file-poll 1376s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1376s ok 41 /mainloop/unix-fd-priority 1376s ok 42 /mainloop/nfds 1376s ok 43 /mainloop/steal-fd 1376s # Start of ownerless-polling tests 1376s ok 44 /mainloop/ownerless-polling/attach-first 1376s ok 45 /mainloop/ownerless-polling/pop-first 1376s # End of ownerless-polling tests 1376s # End of mainloop tests 1376s PASS: glib/mainloop.test 1376s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.9s; system=1.1s; maxrss=9540 1376s autopkgtest [18:59:43]: test mainloop: -----------------------] 1380s mainloop PASS 1380s autopkgtest [18:59:47]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1384s autopkgtest [18:59:51]: test memory-monitor-dbus: preparing testbed 1385s Reading package lists... 1385s Building dependency tree... 1385s Reading state information... 1386s Starting pkgProblemResolver with broken count: 0 1386s Starting 2 pkgProblemResolver with broken count: 0 1386s Done 1386s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1394s autopkgtest [19:00:01]: test memory-monitor-dbus: [----------------------- 1395s Running test: glib/memory-monitor-dbus.test 1396s TAP version 13 1396s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1396s # Received memory warning signal, level 1396s # Received memory warning signal, level 1396s # Received memory warning signal, level 1396s 1..1 1396s PASS: glib/memory-monitor-dbus.test 1396s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.0s; maxrss=20860 1396s autopkgtest [19:00:03]: test memory-monitor-dbus: -----------------------] 1400s memory-monitor-dbus PASS 1400s autopkgtest [19:00:07]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1403s autopkgtest [19:00:10]: test socket: preparing testbed 1405s Reading package lists... 1405s Building dependency tree... 1405s Reading state information... 1406s Starting pkgProblemResolver with broken count: 0 1406s Starting 2 pkgProblemResolver with broken count: 0 1406s Done 1406s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1413s autopkgtest [19:00:20]: test socket: [----------------------- 1415s Running test: glib/socket.test 1415s TAP version 14 1415s # random seed: R02Se9869c2413d92d5282478b165ef0f31f 1415s 1..28 1415s # Start of socket tests 1416s ok 1 /socket/ipv4_sync 1416s # slow test /socket/ipv4_sync executed in 1.00 secs 1417s ok 2 /socket/ipv4_async 1417s # slow test /socket/ipv4_async executed in 1.00 secs 1417s ok 3 /socket/ipv6_sync 1417s ok 4 /socket/ipv6_async 1417s ok 5 /socket/ipv6_v4mapped 1418s ok 6 /socket/close_graceful 1418s # slow test /socket/close_graceful executed in 1.00 secs 1418s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1418s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1418s ok 8 /socket/fd_reuse 1418s ok 9 /socket/address 1418s ok 10 /socket/unix-from-fd 1418s ok 11 /socket/unix-connection 1418s ok 12 /socket/unix-connection-ancillary-data 1418s ok 13 /socket/source-postmortem 1418s ok 14 /socket/read_write 1418s ok 15 /socket/read_writev 1418s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1418s ok 16 /socket/receive_bytes 1418s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1418s ok 17 /socket/receive_bytes_from 1418s # Start of ipv4_sync tests 1418s ok 18 /socket/ipv4_sync/datagram 1418s # Start of datagram tests 1419s ok 19 /socket/ipv4_sync/datagram/timeouts 1419s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1419s # End of datagram tests 1419s # End of ipv4_sync tests 1419s # Start of ipv6_sync tests 1419s ok 20 /socket/ipv6_sync/datagram 1419s # Start of datagram tests 1420s Executing: glib/socket.test 1420s ok 21 /socket/ipv6_sync/datagram/timeouts 1420s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1420s # End of datagram tests 1420s # End of ipv6_sync tests 1420s # Start of reuse tests 1420s ok 22 /socket/reuse/tcp 1420s ok 23 /socket/reuse/udp 1420s # End of reuse tests 1420s # Start of get_available tests 1420s ok 24 /socket/get_available/datagram 1420s ok 25 /socket/get_available/stream 1420s # End of get_available tests 1420s # Start of credentials tests 1420s # Supported on this OS: GCredentials:linux-ucred:pid=0 1420s ok 26 /socket/credentials/tcp_client 1420s # Supported on this OS: GCredentials:linux-ucred:pid=0 1420s ok 27 /socket/credentials/tcp_server 1420s # Supported on this OS: GCredentials:linux-ucred:pid=17418,uid=1000,gid=1000 1420s ok 28 /socket/credentials/unix_socketpair 1420s # End of credentials tests 1420s # End of socket tests 1420s PASS: glib/socket.test 1420s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=3968 1421s autopkgtest [19:00:28]: test socket: -----------------------] 1425s autopkgtest [19:00:32]: test socket: - - - - - - - - - - results - - - - - - - - - - 1425s socket PASS 1428s autopkgtest [19:00:35]: test testfilemonitor: preparing testbed 1430s Reading package lists... 1430s Building dependency tree... 1430s Reading state information... 1430s Starting pkgProblemResolver with broken count: 0 1430s Starting 2 pkgProblemResolver with broken count: 0 1430s Done 1431s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1438s autopkgtest [19:00:45]: test testfilemonitor: [----------------------- 1440s Running test: glib/testfilemonitor.test 1440s TAP version 14 1440s # random seed: R02S660272f815b54ff7026ccab5dc0c5d78 1440s 1..8 1440s # Start of monitor tests 1440s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ?gio-vfs? 1440s # Using temporary directory: /tmp/gio-test-testfilemonitor_TNBV52 1440s # Using GFileMonitor GInotifyFileMonitor 1442s ok 1 /monitor/atomic-replace 1442s # slow test /monitor/atomic-replace executed in 2.00 secs 1442s # Using temporary directory: /tmp/gio-test-testfilemonitor_5OVU52 1442s # Using GFileMonitor GInotifyFileMonitor 1445s ok 2 /monitor/file-changes 1445s # slow test /monitor/file-changes executed in 2.50 secs 1445s # Using temporary directory: /tmp/gio-test-testfilemonitor_IHA752 1445s # Using GFileMonitor GInotifyFileMonitor 1445s Executing: glib/testfilemonitor.test 1448s ok 3 /monitor/dir-monitor 1448s # slow test /monitor/dir-monitor executed in 3.50 secs 1448s # Using temporary directory: /tmp/gio-test-testfilemonitor_7K2U52 1448s # Using GFileMonitor GInotifyFileMonitor 1450s Executing: glib/testfilemonitor.test 1455s Executing: glib/testfilemonitor.test 1460s Executing: glib/testfilemonitor.test 1465s Executing: glib/testfilemonitor.test 1470s Executing: glib/testfilemonitor.test 1473s ok 4 /monitor/dir-not-existent 1473s # slow test /monitor/dir-not-existent executed in 25.02 secs 1473s # Using temporary directory: /tmp/gio-test-testfilemonitor_OXLV52 1473s # Using GFileMonitor 0 GInotifyFileMonitor 1473s # Using GFileMonitor 1 GInotifyFileMonitor 1475s ok 5 /monitor/cross-dir-moves 1475s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1475s # Using temporary directory: /tmp/gio-test-testfilemonitor_HPJV52 1475s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn?t cause a deadlock. 1475s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1475s ok 6 /monitor/finalize-in-callback 1475s # Using temporary directory: /tmp/gio-test-testfilemonitor_80RV52 1475s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1475s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1475s ok 7 /monitor/root 1475s # Start of file tests 1475s # Using temporary directory: /tmp/gio-test-testfilemonitor_Y3RV52 1475s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1475s # Running with hard link tests 1475s # Using GFileMonitor GInotifyFileMonitor 1475s Executing: glib/testfilemonitor.test 1479s # Event 0 at expected index 7 skipped because it is marked as optional 1479s # Event 2 at expected index 11 skipped because it is marked as optional 1479s ok 8 /monitor/file/hard-links 1479s # slow test /monitor/file/hard-links executed in 3.50 secs 1479s # End of file tests 1479s # End of monitor tests 1479s PASS: glib/testfilemonitor.test 1479s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=4224 1479s autopkgtest [19:01:26]: test testfilemonitor: -----------------------] 1483s testfilemonitor PASS 1483s autopkgtest [19:01:30]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1486s autopkgtest [19:01:33]: test thread-pool-slow: preparing testbed 1488s Reading package lists... 1488s Building dependency tree... 1488s Reading state information... 1489s Starting pkgProblemResolver with broken count: 0 1489s Starting 2 pkgProblemResolver with broken count: 0 1489s Done 1489s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1497s autopkgtest [19:01:44]: test thread-pool-slow: [----------------------- 1498s Running test: glib/thread-pool-slow.test 1498s TAP version 14 1498s # random seed: R02Sea188dd602312cf7c87f8ba7371d34c4 1498s 1..7 1498s # Start of threadpool tests 1498s ok 1 /threadpool/functions 1499s ok 2 /threadpool/stop-unused 1499s # slow test /threadpool/stop-unused executed in 0.51 secs 1499s ok 3 /threadpool/pools 1499s # [unsorted] ===> pushed new thread with id:28, number of threads:1, unprocessed:1 1499s # [unsorted] ===> pushed new thread with id:16, number of threads:2, unprocessed:1 1499s # [unsorted] ===> pushed new thread with id:34, number of threads:3, unprocessed:2 1499s # [unsorted] ===> pushed new thread with id:28, number of threads:4, unprocessed:3 1499s # [unsorted] ===> pushed new thread with id:21, number of threads:5, unprocessed:4 1499s # [unsorted] ===> pushed new thread with id:58, number of threads:6, unprocessed:5 1499s # [unsorted] ===> pushed new thread with id:47, number of threads:7, unprocessed:6 1499s # [unsorted] ===> pushed new thread with id:18, number of threads:8, unprocessed:6 1499s # [unsorted] ===> pushed new thread with id:59, number of threads:9, unprocessed:5 1499s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:5 1499s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:5 1499s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:6 1499s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:6 1499s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:7 1499s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:6 1499s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:7 1499s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:7 1499s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:8 1499s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:9 1499s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:10 1499s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:11 1499s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:12 1499s # [unsorted] ===> pushed new thread with id:72, number of threads:10, unprocessed:13 1499s # [unsorted] ===> pushed new thread with id:40, number of threads:10, unprocessed:14 1499s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:15 1499s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:16 1499s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:17 1499s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:18 1499s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:19 1499s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:20 1499s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:21 1499s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:22 1499s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:23 1499s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:24 1499s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:25 1499s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:26 1499s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:27 1499s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:28 1499s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:29 1499s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:30 1499s # [unsorted] ===> pushed new thread with id:61, number of threads:10, unprocessed:31 1499s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:32 1499s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:33 1499s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:34 1499s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:35 1499s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:36 1499s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:37 1499s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:38 1499s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:39 1499s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:40 1499s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:41 1499s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:42 1499s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:43 1499s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:44 1499s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:45 1499s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:46 1499s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:47 1499s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:48 1499s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:49 1499s # [unsorted] ===> pushed new thread with id:59, number of threads:10, unprocessed:50 1499s # [unsorted] ===> pushed new thread with id:2, number of threads:10, unprocessed:51 1499s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:52 1499s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:53 1499s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:54 1499s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:55 1499s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:56 1499s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:57 1499s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:58 1499s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:59 1499s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:60 1499s # [unsorted] ===> pushed new thread with id:98, number of threads:10, unprocessed:61 1499s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:62 1499s # [unsorted] ===> pushed new thread with id:91, number of threads:10, unprocessed:63 1499s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:64 1499s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:65 1499s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:66 1499s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:67 1499s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:68 1499s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:69 1499s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:70 1499s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:71 1499s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:72 1499s # [unsorted] ===> pushed new thread with id:10, number of threads:10, unprocessed:73 1499s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:74 1499s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:75 1499s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:76 1499s # [unsorted] ===> pushed new thread with id:96, number of threads:10, unprocessed:77 1499s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:78 1499s # [unsorted] ===> pushed new thread with id:87, number of threads:10, unprocessed:79 1499s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:80 1499s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:81 1499s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:82 1499s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:83 1499s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:84 1499s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:85 1499s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:86 1499s # [unsorted] ===> pushed new thread with id:79, number of threads:10, unprocessed:87 1499s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:88 1499s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:89 1499s # [unsorted] ===> pushed new thread with id:66, number of threads:10, unprocessed:90 1499s ok 4 /threadpool/no-sort 1499s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:1 1499s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:2 1499s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:3 1499s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:4 1499s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:5 1499s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:6 1499s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:7 1499s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:8 1499s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:9 1499s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:10 1499s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:11 1499s # [ sorted] ===> pushed new thread with id:31, number of threads:0, unprocessed:12 1499s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:13 1499s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:14 1499s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:15 1499s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:16 1499s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:17 1499s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:18 1499s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:19 1499s # [ sorted] ===> pushed new thread with id:46, number of threads:0, unprocessed:20 1499s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:21 1499s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:22 1499s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:23 1499s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:24 1499s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:25 1499s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:26 1499s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:27 1499s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:28 1499s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:29 1499s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:30 1499s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:31 1499s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:32 1499s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:33 1499s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:34 1499s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:35 1499s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:36 1499s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:37 1499s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:38 1499s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:39 1499s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:40 1499s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:41 1499s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:42 1499s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:43 1499s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:44 1499s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:45 1499s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:46 1499s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:47 1499s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:48 1499s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:49 1499s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:50 1499s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:51 1499s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:52 1499s # [ sorted] ===> pushed new thread with id:58, number of threads:0, unprocessed:53 1499s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:54 1499s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:55 1499s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:56 1499s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:57 1499s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:58 1499s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:59 1499s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:60 1499s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:61 1499s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:62 1499s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:63 1499s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:64 1499s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:65 1499s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:66 1499s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:67 1499s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:68 1499s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:69 1499s # [ sorted] ===> pushed new thread with id:63, number of threads:0, unprocessed:70 1499s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:71 1499s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:72 1499s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:73 1499s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:74 1499s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:75 1499s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:76 1499s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:77 1499s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:78 1499s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:79 1499s # [ sorted] ===> pushed new thread with id:16, number of threads:0, unprocessed:80 1499s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:81 1499s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:82 1499s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:83 1499s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:84 1499s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:85 1499s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:86 1499s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:87 1499s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:88 1499s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:89 1499s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:90 1499s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:91 1499s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:92 1499s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:93 1499s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:94 1499s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:95 1499s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:96 1499s # [ sorted] ===> pushed new thread with id:9, number of threads:0, unprocessed:97 1499s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:98 1499s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:99 1499s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:100 1499s # Starting thread pool processing 1499s ok 5 /threadpool/sort 1500s ok 6 /threadpool/stop-unused-multiple 1500s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1500s # Pool idle thread count: 0, unprocessed jobs: 41 1500s # Pool idle thread count: 0, unprocessed jobs: 0 1500s # Pool idle thread count: 0, unprocessed jobs: 0 1501s # Pool idle thread count: 10, unprocessed jobs: 0 1501s # Pool idle thread count: 10, unprocessed jobs: 0 1501s # Pool idle thread count: 10, unprocessed jobs: 0 1501s # Pool idle thread count: 10, unprocessed jobs: 0 1502s # Pool idle thread count: 10, unprocessed jobs: 0 1502s # Pool idle thread count: 10, unprocessed jobs: 0 1502s # Pool idle thread count: 10, unprocessed jobs: 0 1502s # Pool idle thread count: 10, unprocessed jobs: 0 1503s # Pool idle thread count: 10, unprocessed jobs: 0 1503s # Pool idle thread count: 10, unprocessed jobs: 0 1503s # Pool idle thread count: 10, unprocessed jobs: 0 1503s # Pool idle thread count: 10, unprocessed jobs: 0 1503s Executing: glib/thread-pool-slow.test 1504s # Pool idle thread count: 10, unprocessed jobs: 0 1504s # Pool idle thread count: 10, unprocessed jobs: 0 1504s # Pool idle thread count: 10, unprocessed jobs: 0 1504s # Pool idle thread count: 10, unprocessed jobs: 0 1505s # Pool idle thread count: 10, unprocessed jobs: 0 1505s # Pool idle thread count: 10, unprocessed jobs: 0 1505s # Pool idle thread count: 10, unprocessed jobs: 0 1505s # Pool idle thread count: 10, unprocessed jobs: 0 1506s # Pool idle thread count: 10, unprocessed jobs: 0 1506s # Pool idle thread count: 10, unprocessed jobs: 0 1506s # Pool idle thread count: 10, unprocessed jobs: 0 1506s # Pool idle thread count: 10, unprocessed jobs: 0 1507s # Pool idle thread count: 10, unprocessed jobs: 0 1507s # Pool idle thread count: 10, unprocessed jobs: 0 1507s # Pool idle thread count: 10, unprocessed jobs: 0 1507s # Pool idle thread count: 10, unprocessed jobs: 0 1508s # Pool idle thread count: 10, unprocessed jobs: 0 1508s # Pool idle thread count: 10, unprocessed jobs: 0 1508s # Pool idle thread count: 10, unprocessed jobs: 0 1508s # Pool idle thread count: 10, unprocessed jobs: 0 1508s Executing: glib/thread-pool-slow.test 1509s # Pool idle thread count: 10, unprocessed jobs: 2 1509s # Pool idle thread count: 9, unprocessed jobs: 1 1509s # Pool idle thread count: 8, unprocessed jobs: 0 1509s # Pool idle thread count: 8, unprocessed jobs: 0 1509s # Pool idle thread count: 10, unprocessed jobs: 0 1509s # Pool idle thread count: 10, unprocessed jobs: 0 1510s # Pool idle thread count: 10, unprocessed jobs: 0 1510s # Pool idle thread count: 10, unprocessed jobs: 0 1510s # Pool idle thread count: 10, unprocessed jobs: 0 1510s # Pool idle thread count: 10, unprocessed jobs: 0 1511s # Pool idle thread count: 2, unprocessed jobs: 0 1511s # Pool idle thread count: 2, unprocessed jobs: 0 1511s # Pool idle thread count: 2, unprocessed jobs: 0 1511s # Pool idle thread count: 2, unprocessed jobs: 0 1512s # Pool idle thread count: 2, unprocessed jobs: 0 1512s # Pool idle thread count: 2, unprocessed jobs: 0 1512s # Pool idle thread count: 2, unprocessed jobs: 0 1512s # Pool idle thread count: 2, unprocessed jobs: 0 1513s # Pool idle thread count: 2, unprocessed jobs: 0 1513s # Pool idle thread count: 2, unprocessed jobs: 0 1513s # Pool idle thread count: 2, unprocessed jobs: 0 1513s # Pool idle thread count: 2, unprocessed jobs: 0 1513s Executing: glib/thread-pool-slow.test 1514s # Pool idle thread count: 2, unprocessed jobs: 0 1514s # Pool idle thread count: 2, unprocessed jobs: 0 1514s # Pool idle thread count: 2, unprocessed jobs: 0 1514s # Pool idle thread count: 2, unprocessed jobs: 0 1515s # Pool idle thread count: 2, unprocessed jobs: 0 1515s # Pool idle thread count: 2, unprocessed jobs: 0 1515s # Pool idle thread count: 2, unprocessed jobs: 0 1515s # Pool idle thread count: 2, unprocessed jobs: 0 1516s # Pool idle thread count: 2, unprocessed jobs: 0 1516s # Pool idle thread count: 2, unprocessed jobs: 0 1516s # Pool idle thread count: 2, unprocessed jobs: 0 1516s # Pool idle thread count: 2, unprocessed jobs: 0 1517s # Pool idle thread count: 2, unprocessed jobs: 0 1517s # Pool idle thread count: 2, unprocessed jobs: 0 1517s # Pool idle thread count: 2, unprocessed jobs: 0 1517s # Pool idle thread count: 2, unprocessed jobs: 0 1518s # Pool idle thread count: 2, unprocessed jobs: 0 1518s # Pool idle thread count: 2, unprocessed jobs: 0 1518s # Pool idle thread count: 2, unprocessed jobs: 0 1518s # Pool idle thread count: 2, unprocessed jobs: 0 1518s Executing: glib/thread-pool-slow.test 1519s # Pool idle thread count: 2, unprocessed jobs: 0 1519s # Pool idle thread count: 2, unprocessed jobs: 0 1519s ok 7 /threadpool/idle-time 1519s # slow test /threadpool/idle-time executed in 19.53 secs 1519s # End of threadpool tests 1519s PASS: glib/thread-pool-slow.test 1519s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=2688 1519s autopkgtest [19:02:06]: test thread-pool-slow: -----------------------] 1523s thread-pool-slow PASS 1523s autopkgtest [19:02:10]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1527s autopkgtest [19:02:14]: test threadtests: preparing testbed 1528s Reading package lists... 1529s Building dependency tree... 1529s Reading state information... 1529s Starting pkgProblemResolver with broken count: 0 1529s Starting 2 pkgProblemResolver with broken count: 0 1529s Done 1530s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1537s autopkgtest [19:02:24]: test threadtests: [----------------------- 1539s Running test: glib/threadtests.test 1539s TAP version 14 1539s # random seed: R02Sb90d13bd6aa527c0b2e724732f327034 1539s 1..5 1539s # Start of GObject tests 1539s ok 1 /GObject/threaded-object-init 1540s ok 2 /GObject/threaded-weak-ref 1540s # slow test /GObject/threaded-weak-ref executed in 0.79 secs 1540s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1540s # /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 1544s Executing: glib/threadtests.test 1549s Executing: glib/threadtests.test 1554s Executing: glib/threadtests.test 1559s Executing: glib/threadtests.test 1564s Executing: glib/threadtests.test 1569s Executing: glib/threadtests.test 1574s Executing: glib/threadtests.test 1579s Executing: glib/threadtests.test 1584s Executing: glib/threadtests.test 1589s Executing: glib/threadtests.test 1594s Executing: glib/threadtests.test 1599s Executing: glib/threadtests.test 1604s Executing: glib/threadtests.test 1606s ok 3 /GObject/threaded-toggle-notify 1606s # slow test /GObject/threaded-toggle-notify executed in 66.68 secs 1606s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1606s # Start of threaded-weak-ref tests 1606s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1606s # /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. 1606s ok 5 /GObject/threaded-weak-ref/on-finalization 1606s # End of threaded-weak-ref tests 1606s # End of GObject tests 1606s PASS: glib/threadtests.test 1606s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=263.3s; system=0.8s; maxrss=2560 1607s autopkgtest [19:03:34]: test threadtests: -----------------------] 1610s threadtests PASS 1610s autopkgtest [19:03:37]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1614s autopkgtest [19:03:41]: test timeout: preparing testbed 1615s Reading package lists... 1616s Building dependency tree... 1616s Reading state information... 1616s Starting pkgProblemResolver with broken count: 0 1616s Starting 2 pkgProblemResolver with broken count: 0 1616s Done 1617s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1624s autopkgtest [19:03:51]: test timeout: [----------------------- 1626s Running test: glib/timeout.test 1626s TAP version 14 1626s # random seed: R02Sa48ac86c47b6750994442b7f58ef8b19 1626s 1..5 1626s # Start of timeout tests 1626s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1628s ok 1 /timeout/seconds 1628s # slow test /timeout/seconds executed in 2.10 secs 1630s ok 2 /timeout/seconds-once 1630s # slow test /timeout/seconds-once executed in 2.10 secs 1630s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1631s Executing: glib/timeout.test 1632s ok 3 /timeout/weeks-overflow 1632s # slow test /timeout/weeks-overflow executed in 2.10 secs 1632s ok 4 /timeout/far-future-ready-time 1636s Executing: glib/timeout.test 1641s Executing: glib/timeout.test 1642s ok 5 /timeout/rounding 1642s # slow test /timeout/rounding executed in 10.31 secs 1642s # End of timeout tests 1642s PASS: glib/timeout.test 1642s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2176 1643s autopkgtest [19:04:10]: test timeout: -----------------------] 1646s timeout PASS 1646s autopkgtest [19:04:13]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1650s autopkgtest [19:04:17]: test timer: preparing testbed 1652s Reading package lists... 1652s Building dependency tree... 1652s Reading state information... 1652s Starting pkgProblemResolver with broken count: 0 1652s Starting 2 pkgProblemResolver with broken count: 0 1652s Done 1653s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1660s autopkgtest [19:04:27]: test timer: [----------------------- 1662s Running test: glib/timer.test 1662s TAP version 14 1662s # random seed: R02Sd191ffb7e8e5649d8f3777517d3e4a2f 1662s 1..10 1662s # Start of timer tests 1662s ok 1 /timer/basic 1662s ok 2 /timer/stop 1662s ok 3 /timer/continue 1662s ok 4 /timer/reset 1662s ok 5 /timer/is_active 1662s # End of timer tests 1662s # Start of timeval tests 1662s ok 6 /timeval/add 1662s ok 7 /timeval/from-iso8601 1662s ok 8 /timeval/to-iso8601 1662s # Start of to-iso8601 tests 1662s ok 9 /timeval/to-iso8601/overflow # SKIP G_MAXINT == G_MAXLONG - we can't make g_time_val_to_iso8601() overflow. 1662s # End of to-iso8601 tests 1662s # End of timeval tests 1662s # Start of usleep tests 1662s ok 10 /usleep/with-zero-wait 1662s # End of usleep tests 1662s PASS: glib/timer.test 1662s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2176 1662s autopkgtest [19:04:29]: test timer: -----------------------] 1666s timer PASS 1666s autopkgtest [19:04:33]: test timer: - - - - - - - - - - results - - - - - - - - - - 1669s autopkgtest [19:04:36]: test 1065022-futureproofing: preparing testbed 1690s autopkgtest [19:04:57]: testbed dpkg architecture: armhf 1692s autopkgtest [19:04:59]: testbed apt version: 3.0.0 1695s autopkgtest [19:05:02]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1697s autopkgtest [19:05:04]: testbed release detected to be: plucky 1704s autopkgtest [19:05:11]: updating testbed package index (apt update) 1706s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [265 kB] 1706s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 1707s Get:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease [126 kB] 1707s Get:4 http://ftpmaster.internal/ubuntu plucky-security InRelease [126 kB] 1707s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [5196 B] 1707s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf Packages [5772 B] 1707s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf c-n-f Metadata [288 B] 1707s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/restricted armhf c-n-f Metadata [116 B] 1707s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf Packages [18.0 kB] 1707s Get:10 http://ftpmaster.internal/ubuntu plucky-proposed/universe armhf c-n-f Metadata [4896 B] 1707s Get:11 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse armhf c-n-f Metadata [116 B] 1707s Get:12 http://ftpmaster.internal/ubuntu plucky-updates/universe Sources [6216 B] 1707s Get:13 http://ftpmaster.internal/ubuntu plucky-updates/main Sources [15.5 kB] 1707s Get:14 http://ftpmaster.internal/ubuntu plucky-updates/main armhf Packages [24.5 kB] 1707s Get:15 http://ftpmaster.internal/ubuntu plucky-updates/universe armhf Packages [23.3 kB] 1707s Get:16 http://ftpmaster.internal/ubuntu plucky-security/restricted Sources [10.4 kB] 1707s Get:17 http://ftpmaster.internal/ubuntu plucky-security/multiverse Sources [7124 B] 1707s Get:18 http://ftpmaster.internal/ubuntu plucky-security/main Sources [14.4 kB] 1707s Get:19 http://ftpmaster.internal/ubuntu plucky-security/universe Sources [6216 B] 1707s Get:20 http://ftpmaster.internal/ubuntu plucky-security/main armhf Packages [23.6 kB] 1707s Get:21 http://ftpmaster.internal/ubuntu plucky-security/restricted armhf Packages [756 B] 1707s Get:22 http://ftpmaster.internal/ubuntu plucky-security/universe armhf Packages [22.5 kB] 1707s Get:23 http://ftpmaster.internal/ubuntu plucky-security/multiverse armhf Packages [956 B] 1708s Fetched 707 kB in 1s (816 kB/s) 1709s Reading package lists... 1714s autopkgtest [19:05:21]: upgrading testbed (apt dist-upgrade and autopurge) 1716s Reading package lists... 1716s Building dependency tree... 1716s Reading state information... 1717s Calculating upgrade...Starting pkgProblemResolver with broken count: 0 1717s Starting 2 pkgProblemResolver with broken count: 0 1717s Done 1718s Entering ResolveByKeep 1718s 1718s Calculating upgrade... 1719s The following packages will be upgraded: 1719s tzdata 1719s 1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1719s Need to get 198 kB of archives. 1719s After this operation, 0 B of additional disk space will be used. 1719s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main armhf tzdata all 2025b-1ubuntu1.1 [198 kB] 1720s Preconfiguring packages ... 1720s Fetched 198 kB in 0s (480 kB/s) 1720s (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 ... 63953 files and directories currently installed.) 1720s Preparing to unpack .../tzdata_2025b-1ubuntu1.1_all.deb ... 1720s Unpacking tzdata (2025b-1ubuntu1.1) over (2025b-1ubuntu1) ... 1720s Setting up tzdata (2025b-1ubuntu1.1) ... 1720s 1720s Current default time zone: 'Etc/UTC' 1720s Local time is now: Tue May 6 19:05:27 UTC 2025. 1720s Universal Time is now: Tue May 6 19:05:27 UTC 2025. 1720s Run 'dpkg-reconfigure tzdata' if you wish to change it. 1720s 1722s Reading package lists... 1722s Building dependency tree... 1722s Reading state information... 1723s Starting pkgProblemResolver with broken count: 0 1723s Starting 2 pkgProblemResolver with broken count: 0 1723s Done 1723s Solving dependencies... 1724s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1725s autopkgtest [19:05:32]: rebooting testbed after setup commands that affected boot 1787s Reading package lists... 1787s Building dependency tree... 1787s Reading state information... 1788s Starting pkgProblemResolver with broken count: 0 1788s Starting 2 pkgProblemResolver with broken count: 0 1788s Done 1789s The following NEW packages will be installed: 1789s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1789s libdconf1 1789s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1789s Need to get 138 kB of archives. 1789s After this operation, 633 kB of additional disk space will be used. 1789s Get:1 http://ftpmaster.internal/ubuntu plucky/main armhf libdconf1 armhf 0.40.0-5 [38.4 kB] 1789s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf dconf-service armhf 0.40.0-5 [27.6 kB] 1789s Get:3 http://ftpmaster.internal/ubuntu plucky/main armhf dconf-gsettings-backend armhf 0.40.0-5 [23.8 kB] 1789s Get:4 http://ftpmaster.internal/ubuntu plucky/main armhf dpkg-repack all 1.54 [11.2 kB] 1789s Get:5 http://ftpmaster.internal/ubuntu plucky/main armhf gsettings-desktop-schemas all 48.0-1ubuntu1 [37.6 kB] 1789s Fetched 138 kB in 0s (383 kB/s) 1789s Selecting previously unselected package libdconf1:armhf. 1790s (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 ... 63953 files and directories currently installed.) 1790s Preparing to unpack .../libdconf1_0.40.0-5_armhf.deb ... 1790s Unpacking libdconf1:armhf (0.40.0-5) ... 1790s Selecting previously unselected package dconf-service. 1790s Preparing to unpack .../dconf-service_0.40.0-5_armhf.deb ... 1790s Unpacking dconf-service (0.40.0-5) ... 1790s Selecting previously unselected package dconf-gsettings-backend:armhf. 1790s Preparing to unpack .../dconf-gsettings-backend_0.40.0-5_armhf.deb ... 1790s Unpacking dconf-gsettings-backend:armhf (0.40.0-5) ... 1790s Selecting previously unselected package dpkg-repack. 1790s Preparing to unpack .../dpkg-repack_1.54_all.deb ... 1790s Unpacking dpkg-repack (1.54) ... 1790s Selecting previously unselected package gsettings-desktop-schemas. 1790s Preparing to unpack .../gsettings-desktop-schemas_48.0-1ubuntu1_all.deb ... 1790s Unpacking gsettings-desktop-schemas (48.0-1ubuntu1) ... 1790s Setting up dpkg-repack (1.54) ... 1790s Setting up libdconf1:armhf (0.40.0-5) ... 1790s Setting up dconf-service (0.40.0-5) ... 1790s Setting up dconf-gsettings-backend:armhf (0.40.0-5) ... 1790s Setting up gsettings-desktop-schemas (48.0-1ubuntu1) ... 1790s Processing triggers for man-db (2.13.0-1) ... 1790s Processing triggers for libglib2.0-0t64:armhf (2.84.1-1) ... 1790s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1809s autopkgtest [19:06:55]: test 1065022-futureproofing: [----------------------- 1810s + export DEBIAN_FRONTEND=noninteractive 1810s + n=0 1810s + failed=0 1810s + binary_package=libglib2.0-0t64 1810s + future_binary_package=libglib2.0-0xyz 1810s + pwd 1810s + srcdir=/tmp/autopkgtest.6YAuRe/build.Fcb/src 1810s + mktemp -d 1810s + tmpdir=/tmp/tmp.SE0f9VPDt2 1810s + cd /tmp/tmp.SE0f9VPDt2 1810s + [ -e /tmp/autopkgtest.6YAuRe/build.Fcb/src/debian/tests/manual/local-1065022.sources ] 1810s + dpkg-query -W dpkg-repack 1810s dpkg-repack 1.54 1810s + dpkg-repack --generate libglib2.0-0t64 1810s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1810s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64._4AjPW for libglib2.0-0t64 1810s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64._4AjPW ." 1810s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64._4AjPW/DEBIAN/control 1810s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64._4AjPW/DEBIAN/control 1810s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64._4AjPW/DEBIAN/control 1810s + env binary_package=libglib2.0-0t64 future_binary_package=libglib2.0-0xyz perl -p -i -e s/^Package:.*$/Package: $ENV{future_binary_package}/; -e s/^(Breaks:.*)$/$1, $ENV{binary_package}/; -e s/^(Provides:.*)$/$1, $ENV{binary_package}/; -e s/^(Replaces:.*)$/$1, $ENV{binary_package}/; dpkg-repack.libglib2.0-0t64._4AjPW/DEBIAN/control 1810s + dpkg-deb --build dpkg-repack.libglib2.0-0t64._4AjPW libglib2.0-0xyz.deb 1810s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1812s + apt-get -y install ./libglib2.0-0xyz.deb 1812s Reading package lists... 1812s Building dependency tree... 1812s Reading state information... 1812s Solving dependencies... 1813s The following packages were automatically installed and are no longer required: 1813s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 1813s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 1813s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 1813s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-configobj 1813s python3-debconf python3-markdown-it python3-mdurl python3-problem-report 1813s python3-pygments python3-rich python3-systemd 1813s Use 'apt autoremove' to remove them. 1813s The following additional packages will be installed: 1813s xdg-user-dirs 1813s Suggested packages: 1813s low-memory-monitor 1813s Recommended packages: 1813s shared-mime-info 1813s The following packages will be REMOVED: 1813s apport apport-core-dump-handler bolt cloud-init cloud-init-base 1813s dconf-gsettings-backend dconf-service fwupd gir1.2-girepository-2.0 1813s gir1.2-glib-2.0 gsettings-desktop-schemas libblockdev-crypto3 1813s libblockdev-fs3 libblockdev-loop3 libblockdev-mdraid3 libblockdev-nvme3 1813s libblockdev-part3 libblockdev-swap3 libblockdev-utils3 libblockdev3 1813s libdconf1 libfwupd3 libgirepository-1.0-1 libglib2.0-0t64 libgudev-1.0-0 1813s libjcat1 libjson-glib-1.0-0 libmbim-glib4 libmbim-proxy libmm-glib0 1813s libnetplan1 libpolkit-agent-1-0 libpolkit-gobject-1-0 libqmi-glib5 1813s libqmi-proxy libqrtr-glib0 libudisks2-0 libvolume-key1 libxmlb2 1813s netplan-generator netplan.io networkd-dispatcher python3-dbus python3-gi 1813s python3-netplan shared-mime-info ubuntu-minimal udisks2 xfsprogs 1813s The following NEW packages will be installed: 1813s libglib2.0-0xyz xdg-user-dirs 1813s 0 upgraded, 2 newly installed, 49 to remove and 0 not upgraded. 1813s Need to get 17.4 kB/1472 kB of archives. 1813s After this operation, 31.9 MB disk space will be freed. 1813s Get:1 /tmp/tmp.SE0f9VPDt2/libglib2.0-0xyz.deb libglib2.0-0xyz armhf 2.84.1-1 [1455 kB] 1813s Get:2 http://ftpmaster.internal/ubuntu plucky/main armhf xdg-user-dirs armhf 0.18-2 [17.4 kB] 1813s Fetched 17.4 kB in 0s (80.6 kB/s) 1813s (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 ... 64022 files and directories currently installed.) 1813s Removing bolt (0.9.8-1) ... 1814s Removing cloud-init (25.1.1-0ubuntu2) ... 1814s Removing cloud-init-base (25.1.1-0ubuntu2) ... 1814s Removing gsettings-desktop-schemas (48.0-1ubuntu1) ... 1814s Removing dconf-gsettings-backend:armhf (0.40.0-5) ... 1814s Removing dconf-service (0.40.0-5) ... 1814s Removing fwupd (2.0.7-1) ... 1815s Removing networkd-dispatcher (2.2.4-1.1) ... 1815s Removing udisks2 (2.10.1-11ubuntu2) ... 1815s Removing libblockdev-crypto3:armhf (3.3.0-2) ... 1815s Removing libblockdev-fs3:armhf (3.3.0-2) ... 1815s Removing libblockdev-loop3:armhf (3.3.0-2) ... 1815s Removing libblockdev-mdraid3:armhf (3.3.0-2) ... 1816s Removing libblockdev-nvme3:armhf (3.3.0-2) ... 1816s Removing libblockdev-part3:armhf (3.3.0-2) ... 1816s Removing libblockdev-swap3:armhf (3.3.0-2) ... 1816s Removing libblockdev3:armhf (3.3.0-2) ... 1816s Removing libblockdev-utils3:armhf (3.3.0-2) ... 1816s Removing libdconf1:armhf (0.40.0-5) ... 1816s Removing libfwupd3:armhf (2.0.7-1) ... 1816s Removing shared-mime-info (2.4-5build1) ... 1816s Removing xfsprogs (6.13.0-2ubuntu1) ... 1816s Removing python3-dbus (1.3.2-5build5) ... 1816s Removing libgudev-1.0-0:armhf (1:238-6) ... 1816s Removing libjcat1:armhf (0.2.0-2build3) ... 1816s Removing libjson-glib-1.0-0:armhf (1.10.6+ds-2) ... 1816s Removing libqmi-proxy (1.35.6-1) ... 1816s Removing libqmi-glib5:armhf (1.35.6-1) ... 1816s Removing libmbim-proxy (1.31.2-0ubuntu4) ... 1816s Removing libmbim-glib4:armhf (1.31.2-0ubuntu4) ... 1816s Removing libmm-glib0:armhf (1.23.4-0ubuntu3) ... 1816s Removing ubuntu-minimal (1.549) ... 1817s Removing netplan.io (1.1.2-2ubuntu1) ... 1817s dpkg: warning: while removing netplan.io, directory '/usr/share/netplan/netplan_cli/cli/commands' not empty so not removed 1817s Removing python3-netplan (1.1.2-2ubuntu1) ... 1817s Removing netplan-generator (1.1.2-2ubuntu1) ... 1817s dpkg: warning: while removing netplan-generator, directory '/etc/netplan' not empty so not removed 1817s Removing libnetplan1:armhf (1.1.2-2ubuntu1) ... 1817s Removing libpolkit-agent-1-0:armhf (126-2) ... 1817s Removing libpolkit-gobject-1-0:armhf (126-2) ... 1817s Removing libqrtr-glib0:armhf (1.2.2-1ubuntu4) ... 1817s Removing libudisks2-0:armhf (2.10.1-11ubuntu2) ... 1817s Removing libvolume-key1:armhf (0.3.12-9) ... 1817s Removing libxmlb2:armhf (0.3.22-1) ... 1817s Removing apport (2.32.0-0ubuntu5) ... 1817s Removing apport-core-dump-handler (2.32.0-0ubuntu5) ... 1818s Removing python3-gi (3.50.0-4build1) ... 1818s Removing gir1.2-girepository-2.0:armhf (1.84.0-1) ... 1818s Removing gir1.2-glib-2.0:armhf (2.84.1-1) ... 1818s Removing libgirepository-1.0-1:armhf (1.84.0-1) ... 1818s Removing libglib2.0-0t64:armhf (2.84.1-1) ... 1818s Selecting previously unselected package libglib2.0-0xyz:armhf. 1818s (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 ... 62878 files and directories currently installed.) 1818s Preparing to unpack .../libglib2.0-0xyz.deb ... 1818s Unpacking libglib2.0-0xyz:armhf (2.84.1-1) ... 1818s Selecting previously unselected package xdg-user-dirs. 1818s Preparing to unpack .../xdg-user-dirs_0.18-2_armhf.deb ... 1818s Unpacking xdg-user-dirs (0.18-2) ... 1818s Setting up xdg-user-dirs (0.18-2) ... 1818s Setting up libglib2.0-0xyz:armhf (2.84.1-1) ... 1818s No schema files found: removed existing output file. 1818s Processing triggers for dbus (1.16.2-2ubuntu1) ... 1818s Processing triggers for initramfs-tools (0.147ubuntu1) ... 1818s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1818s Processing triggers for man-db (2.13.0-1) ... 1819s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1819s + n=1 1819s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1819s + echo not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1819s + failed=1 1819s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1819s + n=2 1819s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1819s + echo not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1819s + failed=1 1819s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1819s + n=3 1819s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1819s not ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1819s not ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1819s not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1819s not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1819s not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1819s not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1819s + echo not ok 3 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1819s + failed=1 1819s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1819s + n=4 1819s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1819s + echo not ok 4 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1819s + failed=1 1819s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1819s + n=5 1819s + test -e /usr/lib/*/gio/modules/giomodule.cache 1819s + echo not ok 5 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1819s + failed=1 1819s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1819s + n=6 1819s + test -s /usr/lib/*/gio/modules/giomodule.cache 1819s + echo not ok 6 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1819s + failed=1 1819s + apt-get -y purge libglib2.0-0t64 1819s Reading package lists... 1820s Building dependency tree... 1820s Reading state information... 1820s The following packages were automatically installed and are no longer required: 1820s apport-symptoms exfatprogs jq libatasmart4 libbytesize-common libbytesize1 1820s libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 libgpgme11t64 1820s libicu76 libinih1 libjq1 libjson-glib-1.0-common libnspr4 libnss3 1820s libnvme1t64 libonig5 libprotobuf-c1 python3-apport python3-configobj 1820s python3-debconf python3-markdown-it python3-mdurl python3-problem-report 1820s python3-pygments python3-rich python3-systemd 1820s Use 'apt autoremove' to remove them. 1820s The following packages will be REMOVED: 1820s libglib2.0-0t64* 1821s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1821s After this operation, 0 B of additional disk space will be used. 1821s (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 ... 62913 files and directories currently installed.) 1821s Purging configuration files for libglib2.0-0t64:armhf (2.84.1-1) ... 1821s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1821s + n=7 1821s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1821s + echo not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1821s + failed=1 1821s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1821s + n=8 1821s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1821s + echo not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1821s + failed=1 1821s + assert test -e /usr/lib/*/gio/modules/libdconfsettings.so 1821s + n=9 1821s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1821s + echo not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1821s + failed=1 1821s + assert test -s /usr/lib/*/gio/modules/libdconfsettings.so 1821s + n=10 1821s + test -s /usr/lib/*/gio/modules/libdconfsettings.so 1821s + echo not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1821s + failed=1 1821s + assert test -e /usr/lib/*/gio/modules/giomodule.cache 1821s + n=11 1821s + test -e /usr/lib/*/gio/modules/giomodule.cache 1821s + echo not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1821s + failed=1 1821s + assert test -s /usr/lib/*/gio/modules/giomodule.cache 1821s + n=12 1821s + test -s /usr/lib/*/gio/modules/giomodule.cache 1821s + echo not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1821s + failed=1 1821s not ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml exit status 1 1821s not ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled exit status 1 1821s not ok 9 - test -e /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1821s not ok 10 - test -s /usr/lib/*/gio/modules/libdconfsettings.so exit status 1 1821s + apt-get -y purge libglib2.0-0xyz 1821s not ok 11 - test -e /usr/lib/*/gio/modules/giomodule.cache exit status 1 1821s not ok 12 - test -s /usr/lib/*/gio/modules/giomodule.cache exit status 1 1821s Reading package lists... 1821s Building dependency tree... 1821s Reading state information... 1822s The following packages were automatically installed and are no longer required: 1822s apport-symptoms exfatprogs jq libatasmart4 libatomic1 libbytesize-common 1822s libbytesize1 libcurl3t64-gnutls libdrm-amdgpu1 libflashrom1 libftdi1-2 1822s libglib2.0-data libgpgme11t64 libicu76 libinih1 libjq1 1822s libjson-glib-1.0-common libnspr4 libnss3 libnvme1t64 libonig5 libprotobuf-c1 1822s python3-apport python3-configobj python3-debconf python3-markdown-it 1822s python3-mdurl python3-problem-report python3-pygments python3-rich 1822s python3-systemd xdg-user-dirs 1822s Use 'apt autoremove' to remove them. 1822s The following packages will be REMOVED: 1822s libglib2.0-0xyz* 1822s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1822s After this operation, 3455 kB disk space will be freed. 1822s (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 ... 62913 files and directories currently installed.) 1822s Removing libglib2.0-0xyz:armhf (2.84.1-1) ... 1822s Processing triggers for libc-bin (2.41-6ubuntu1) ... 1822s (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 ... 62888 files and directories currently installed.) 1822s Purging configuration files for libglib2.0-0xyz:armhf (2.84.1-1) ... 1822s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1822s + n=13 1822s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1822s + echo ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1822s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1822s + n=14 1822s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1822s + echo ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1822s + assert_not test -e /usr/lib/*/gio/modules/libdconfsettings.so 1822s + n=15 1822s + test -e /usr/lib/*/gio/modules/libdconfsettings.so 1822s + echo ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1822s + assert_not test -e /usr/lib/*/gio/modules/giomodule.cache 1822s + n=16 1822s + test -e /usr/lib/*/gio/modules/giomodule.cache 1822s + echo ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1822s + echo 1..16 1822s + exit 1 1822s ok 13 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1822s ok 14 - unsuccessful as expected: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1822s ok 15 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/libdconfsettings.so 1822s ok 16 - unsuccessful as expected: test -e /usr/lib/*/gio/modules/giomodule.cache 1822s 1..16 1823s autopkgtest [19:07:10]: test 1065022-futureproofing: -----------------------] 1827s autopkgtest [19:07:14]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1827s 1065022-futureproofing FLAKY non-zero exit status 1 1830s autopkgtest [19:07:17]: @@@@@@@@@@@@@@@@@@@@ summary 1830s build PASS (superficial) 1830s build-static PASS (superficial) 1830s girepository-tools PASS (superficial) 1830s libgio-2.0-dev-bin PASS (superficial) 1830s libglib2.0-dev PASS (superficial) 1830s installed-tests PASS 1830s closure-refcount PASS 1830s debugcontroller PASS 1830s gdbus-server-auth PASS 1830s gdbus-threading PASS 1830s gmenumodel PASS 1830s mainloop PASS 1830s memory-monitor-dbus PASS 1830s socket PASS 1830s testfilemonitor PASS 1830s thread-pool-slow PASS 1830s threadtests PASS 1830s timeout PASS 1830s timer PASS 1830s 1065022-futureproofing FLAKY non-zero exit status 1